![]() |
css riddle, can you solve it?
I've got the following css for an image class:
Code:
.special img, .special img a The background and border of the parent class keeps showing when you don't hover. I've never seen this kind of selective 'class inheritance' before. |
C.S.S. = Continual Self Stimulation?
Solve it? Easy, just cut off your hands.. HTH xxx |
:Oh crap
|
Quote:
Call it a bump ! Good luck ! Its all greek to me lol |
Got it.
It's inside a class (.post) which already had image attributes. The reason that one was overriding the class inside that class is because i needed make it more specific. The more specific a class is, that's the one it will listen to. So i did this Code:
.post img.special |
I can help you with it, so images inside .post would behave as you want. But I have to see html code first. Hit me via icq 348215379 and we'll solve it.
|
the <div class="special"></div> approach (instead of adding the class on the img tag) should work if you add the ".post" class before the ".special img" and ".special img:hover" selectors
|
All times are GMT -7. The time now is 07:31 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123