Help - Search - Members - Calendar
Full Version: Underlined Words?
Forums > Resource Center > Webmasters' Corner > Resolved Topics
bigtrey90
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;
        }
freeflow
Go here , use mipadi's code. The last line of it will change the color of the underline. If you don't want it to be double change double to solid.
bigtrey90
Sorry it didn't work. By the way, I'm using Dreamweaver.
freeflow
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.

bigtrey90
okay now it works, thanks biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.