Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Underline's color

Reply
Thread Tools

Underline's color

 
 
Fulio Open
Guest
Posts: n/a
 
      01-23-2011
Hello,

On CSS, can the color of underline be changed? Thanks for help.
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      01-23-2011
Fulio Open wrote:

> On CSS, can the color of underline be changed?


Only by changing the color of the content (text) as well.

But you can simulate underline with a bottom border, and for that border,
you can set its color (and width and style) independently. The border lies
somewhat lower than underline (not at or right below the baseline but below
the content, which normally means below any ascenders of letters) - which
might be a good thing.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
Fulio Open
Guest
Posts: n/a
 
      01-24-2011
On Jan 23, 10:12*am, "Jukka K. Korpela" <(E-Mail Removed)> wrote:
> Fulio Open wrote:
> > On CSS, can the color of underline be changed?

>
> Only by changing the color of the content (text) as well.
>
> But you can simulate underline with a bottom border, and for that border,
> you can set its color (and width and style) independently. The border lies
> somewhat lower than underline (not at or right below the baseline but below
> the content, which normally means below any ascenders of letters) - which
> might be a good thing.
>
> --
> Yucca,http://www.cs.tut.fi/~jkorpela/


Thanks a lot for help.

fulio pen
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
standard way of getting color # string from drawing.color? PJ6 ASP .Net 4 09-15-2005 06:10 PM
Color.white vs. Color.WHITE Niels Dybdahl Java 3 10-06-2004 03:21 PM
how to convert color in style "#e6e6e6" to color object in vb.net moondaddy ASP .Net 3 04-28-2004 04:59 AM
BGR Color to Java Color Andrew Arace Java 7 09-16-2003 05:30 PM



Advertisments