Underline's color

Discussion in 'HTML' started by Fulio Open, Jan 23, 2011.

  1. Fulio Open

    Fulio Open Guest

    Hello,

    On CSS, can the color of underline be changed? Thanks for help.
     
    Fulio Open, Jan 23, 2011
    #1
    1. Advertising

  2. 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/
     
    Jukka K. Korpela, Jan 23, 2011
    #2
    1. Advertising

  3. Fulio Open

    Fulio Open Guest

    On Jan 23, 10:12 am, "Jukka K. Korpela" <> 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
     
    Fulio Open, Jan 24, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sunil
    Replies:
    1
    Views:
    431
    Nicolas LeBlanc
    Jul 15, 2003
  2. Jag
    Replies:
    2
    Views:
    8,423
    Randy Rahbar
    Nov 14, 2003
  3. Music Lover

    Bold Italic UnderLine in TextBox

    Music Lover, Nov 26, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    828
    Teemu Keiski
    Nov 26, 2003
  4. John F
    Replies:
    10
    Views:
    883
    Jukka K. Korpela
    Feb 29, 2008
  5. Kamaljeet Saini
    Replies:
    0
    Views:
    450
    Kamaljeet Saini
    Feb 13, 2009
Loading...

Share This Page