Getting rid of unwanted CSS opacity in images? -
i'm setting wordpress website , i'm using opacity let background image "shine thorough", shows off parallax scroll effect rather nicely. problem background image shines through on non-transparent foreground images too!
see http://csr-kommunikation.se/billig-hemsida-till-foretaget-blir-ofta-dyr-historia/
tried editing stylesheet (style.css) can't figure out how rid of it. html structure like
<article> <div> <p> <img> [the image problem , text]
what have tried:
- adding "opacity: 1.0;" img, div , article class styling, , in article take effect. (but lose opacity behind text too.)
- adding "z-index: 10000; !important" img class. no effect.
what haven't tried:
- in page source image has class "wp-image-603" can't find edit wp-image class since it's not in theme css. don't know if might can solved.
i'm using latest version of chrome (36) , have tried viewing page in opera looks same. (or "looked" should say, looks crap apparently...)
you're making entire article
tag translucent, that's inside translucent well. instead of you're doing here:
article { background: #fff; opacity: 0.95; }
use:
article { background: rgba(255, 255, 255, 0.95); }
this change white background's opacity 0.95
, while keeping content as-is.
Comments
Post a Comment