Click to See Complete Forum and Search --> : link hover state problem
knowj
11-05-2007, 03:52 PM
I can't seem to fix this where it says:
Continue Portfolio...
and
Continue Photography...
when you rollover it should have the same effect as: Continue Reading... but with black text.
http://www.knowj.com
I know its going to be a school boy error. i feel so incompetent
Kravvitz
11-05-2007, 07:23 PM
It's a specificity problem. "#portfolio a" has a much higher specificity than "a.portfolio-link:hover".
http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html
http://juicystudio.com/displayarticle.php?page=selector-specificity.php
http://www.w3.org/TR/CSS21/cascade.html#specificity
http://www.google.com/search?q=CSS+calculate+specificity
P.S. Are you aware that you have two <title> elements on that page?
knowj
11-06-2007, 02:18 AM
Ye i noticed it last night but I was too tired to bother changing it. I had PHP and HTML spinning round my mind all last night didn't get any sleep.
I've come to the conclusion I need a switch off period before I go to sleep.
Fixed it now tho.
I will look into the specificity later today shouldn't take too long.