I'm trying to get text with 1-2px bottom border but when i try i get border on a full page :(.
I will be happy if someone help me.Thx.
12-26-2012, 01:29 PM
Javaboey
border-bottom: 1px solid #000;
Apply that to whatever element you need. Also, change the color/size/style as needed.
12-27-2012, 02:11 AM
simplypixie
To expand on Javaboey's answer so you may be able to understand a bit better, if the text in question is a paragraph, in your stylesheet you would just add some style to paragraphs with a certain class (the colour needs to be amended to the hex colour you need)
And then in your HTML wrap a span around each word you want to have the border applied to:
HTML Code:
<p>I am a <span class="white-underline">line</span> of <span class="white-underline">text</span></p>
Also, with using just a class you can apply it to any element in your HTML, so maybe you have an un-ordered list and you want one of the list items to be underlined: