CSS

adplus-dvertising
How to make underlined text using CSS
Previous Home Next

CSS code for this is given below-

<style type="text/css">
.UnderlineStyle {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: italic; 
text-decoration: underline;
color: #FF0000;
}
</style>

for activating this 'style operation', we need to insert this code in between the <head></head> tags at the top of your web page.Here we make a class named ItalicStyle and inside this class i have mentioned the font-family, font-style and color for font. In order to make underline below the text we use text - decoration : underline;

Previous Home Next