a.myLinks { font-weight: normal; text-decoration: underline }
I learnt everything I know about HTML from <a class="myLinks" href="http://www.gaming-age.com">Gaming Age</a>!
joaomgcd said:You can underline something by simply writing
<u>something</u>
Rei_Toei said:Umm... I'm really a noob :lol. I'm working with a site that uses ASP. I'm familiar with the most basic HTML, but I didn't know how changing the visual presentation of linking worked. Turns out the CSS isn't gonna be changed just because I like underlined urls more then bold ones. Anyway, thanks a bunch for the help, it's really appreciated.
<head>
<style type="text/css">
a.specialLink { font-weight: normal; text-decoration: underline }
</style>
</head>
<a href="..." class="specialLink">link</a>
Usability-wise, links should be underlined, at least when hovered-over (look at a lot of the links here on GAF, they underline on hover). I think that's why, intuitively, you'd prefer it that way. Another way you can change the style of individual tags by adding a style attribute:Rei_Toei said:Umm... I'm really a noob :lol. I'm working with a site that uses ASP. I'm familiar with the most basic HTML, but I didn't know how changing the visual presentation of linking worked. Turns out the CSS isn't gonna be changed just because I like underlined urls more then bold ones. Anyway, thanks a bunch for the help, it's really appreciated.
APF said:[EDIT: the point of CSS is to abstract the styling of a document from the structural components of that document; it helps with more than just adding consistency, it also makes going through code and editing structural & presentational elements a lot easier...]
iapetus said:Which is why inlining the style in the individual elements is Bad and wRong.
Rei_Toei said:Aha. I guess I like underlined urls more from an aesthetic point of view, but perhaps that's just because it's more commonly used and therefore looks intuitively better.
HyperionX's code didn't work here, it didn't link. And when I added the '<a href="/' part to make it work, it started to a (dead) link on the site about content managment. But the code APF gave me did work. Thanks a lot all of you!
APF said:Usability-wise, links should be underlined, at least when hovered-over (look at a lot of the links here on GAF, they underline on hover).
<head>
<style type="text/css">
a.hoverlink {font-weight: normal; color:black; text-decoration: none; }
a.hoverlink :hover {text-decoration: underline; }
</style>
</head>
<a class="hoverlink" href="http://www.csszengarden.com">Link me!</a>
APF said:But if you don't have access to the master stylesheet it's an option.