![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
css riddle, can you solve it?
I've got the following css for an image class:
Code:
.special img, .special img a { background: none; border: none; opacity:0.8; filter:alpha(opacity=80); /* For IE8 and earlier */ } .special img:hover, .special img a:hover { background: none; border: none; opacity:1.0; filter:alpha(opacity=100); /* For IE8 and earlier */ } 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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,609
|
C.S.S. = Continual Self Stimulation?
Solve it? Easy, just cut off your hands.. HTH xxx |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,609
|
Translation?
Call it a bump ! Good luck ! Its all greek to me lol |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
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 { background: none; border: none; opacity:0.8; filter:alpha(opacity=80); /* For IE8 and earlier */ } .post img.special:hover { background: none; border: none; opacity:1.0; filter:alpha(opacity=100); /* For IE8 and earlier */ } |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Apr 2009
Location: Lithuania
Posts: 63
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jun 2008
Location: Finland
Posts: 1,588
|
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
__________________
www.gimme-website.com |
![]() |
![]() ![]() ![]() ![]() ![]() |