Log In · Register

 
Underlined Words?
bigtrey90
post Mar 11 2007, 04:46 PM
Post #1


talent on another level
*****

Group: Member
Posts: 746
Joined: Oct 2006
Member No: 475,735



I am trying to make the words or the underline change color, but right now it is just the same color as the text. Here is my code:

CODE
.u{
        font-family: arial;
        font-size: 8pt;
        color: #92ac98;
        }
 
 
Start new topic
Replies
freeflow
post Mar 11 2007, 05:06 PM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



It doesn't matter whether or not you use dreamweaver..... Anyways to the point if you edit everything correctly you get a word in one color and a underline in another. If you want just the word and underline the same color you set both to the same.

Example: When I use: (without the . before the u)
CODE
u {
    font-family:Arial;
    font-size:8pt;
    color:#000000;
    text-decoration:none; /* Turns off underlining */
    border-bottom: 4px double #304973; /* Adds a double underline */
}

(You may need to use style tags if you didn't.)

It turns out like this, because I set the word to black and the underline to another color. Also to make it work you know what you have to use <u>text</u> right?


Also if you are editing the underlines already in your css it will stop that from occuring as well.

 

Posts in this topic
bigtrey   Underlined Words?   Mar 11 2007, 04:46 PM
toyo loco   Go here , use mipadi's code. The last line of...   Mar 11 2007, 04:51 PM
bigtrey   Sorry it didn't work. By the way, I'm usi...   Mar 11 2007, 04:54 PM
toyo loco   It doesn't matter whether or not you use dream...   Mar 11 2007, 05:06 PM
bigtrey   okay now it works, thanks   Mar 11 2007, 05:08 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: