how in css can you define the styles for two different <a href> tags ?
Printable View
how in css can you define the styles for two different <a href> tags ?
Use classes. Something like this in the CSS:
then use the class attribute in the HTML file:Code:a.lala {
background:transparent;
color:white
}
a.dipsy {
background:transparent;
color:black
}
Code:<a href="#" class="lala">lala</a>
<a class="dipsy" href=#">dipsy</a>
You can also add hover, link etc to the css classes:
Code:a.lala:link {
background:transparent;
color:white
}
a.lala:hover {
background:transparent;
color:black
}
aaaaaaaaaah, thats what i was looking for. thanx :)Quote:
a.lala:link {
background:transparent;
color:white
}
a.lala:hover {
background:transparent;
color:black
}