Question to the Cascading Style Sheet gurus...
I have a couple different link classes (a.resume, a.footer, a.video, etc.) but I'd like them to all use the same a:hover style. Is there a way to do this?
Here's what I have right now. The a:hover only seems to affect classless links...
a {
color: #ffaa00;
text-decoration: underline;
}
a:hover {
color: #664400;
text-decoration: underline;
}
a.resume {
color: #2222AA;
text-decoration: underline;
}
a.footer {
color: #666;
}
Replies
color: #664400;
text-decoration: underline;
}
a:hover = 2
a.yeah = 11
a.yeah:hover = 12
I got interested in web accessibility before I started 3d. I had to survive on the linux powered familial computer and web standards issue were a lot more frustrating back in 98 I think it comes very easily if you have a clever html structure, it is then just a matter of assigning this structure a cool look. That's why I guess it's important to know selectors first. Unfortunately the website I used the most is only in german and french. Once I got more used to the basics (browsing trough csszengarden helped a lot) I read a few w3c documents. Than by the time you gather more tricks It's an enjoyable syntax to learn since you have immediate feedback, pretty much like shaders, except that you only need a (proper) browser :P
btw I helps a lot to use the web developer toolbar plugin in firefox, it allows you to modify any page and to pick up specific elements' style while you're browsing.
cheers
www.lynda.com
worth the money.
Alex
<div class="resume">
content
<a href="url">text</a>
</div>
css:
This may not be ideal, depending on how your links are structured, or how you plan on using them. If you go with Brice's suggestion, however:
All in one, so there's less to change (and therefore forget).
If you assume those tags are in the same container, which is not the case here (footer >< resume) the best would be to ID or class a meaningful parent:
On my index page I want to convert all my thumbnails to bkg-image-reposition rollovers. Problem is, I can't get the divs to appear side-by-side, four to a row. Instead each one makes its own row, and the clickable area fills the entire row. I guess I have to use tables?
[/QUOTE]
http://ericchadwick.com