Author Topic: Prevent contents from being transparent if <div> has transparency?  (Read 5919 times)

0 Members and 1 Guest are viewing this topic.

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Hi,

how to do that?

I allready tryed to set a div into div with explicit 100 transparency but no effort.
That's what i tryed:

html:

Code: [Select]
<div id="father">
transparent content
<div id="son">
not transparent content
</div>
</div>

css:

Code: [Select]
father {
        opacity: 0.85; /* Webkit und Opera  */
        -moz-opacity: 0.85; /* Mozilla Browser */
filter: alpha(opacity = 85); /* IE */
}

son {
        opacity: 1.0; /* Webkit und Opera  */
        -moz-opacity: 1.0; /* Mozilla Browser */
filter: alpha(opacity = 100); /* IE */
}

But it's not working where is the trick?
Any clues?

Seems that the childs always inherits of there parents?


Greetz X23

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Prevent contents from being transparent if <div> has transparency?
« Reply #1 on: November 18, 2010, 05:51:41 PM »
for element ID you must use # in css:
Code: [Select]
#father {
..
}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)