View Single Post
Old 10-01-2012, 08:09 AM   PM User | #4
stevenmw
Regular Coder

 
stevenmw's Avatar
 
Join Date: Jun 2007
Location: OK
Posts: 446
Thanks: 26
Thanked 30 Times in 30 Posts
stevenmw is an unknown quantity at this point
oliviacis, Please make sure to wrap your code.

John, it doesn't have too be that complicated.

Use a separate stylesheet aside from your html page and use

Code:
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}

a:active {
text-decoration: none;
}

a:hover {
text-decoration: none;
}
This will take the underline away from every single link on your page. Doing it the way oliviacsis said would only take the underline away from the individual link.

Of course you can have multiple link styles by assigning a link state to a div, and all of the links in that div will refelct that link style.

Code:
#wrap a {
text-decoration: none;
}

Last edited by stevenmw; 10-01-2012 at 08:22 AM..
stevenmw is offline   Reply With Quote