Topic: stopping inherited background images (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
![]() Hello, |
Paranoid (IV) Inmate From: London |
![]() Can you show us an example of your code? Or post a direct link to your site? |
Nervous Wreck (II) Inmate From: |
![]() Hello, |
Nervous Wreck (II) Inmate From: |
![]() ps I have just noticed that if I set the background image in the 'container' div as opposed to within 'body' then the photoviewer looks fine - i.e. no dots showing through. It isn't the solution though as I lose the main page background but at least it proves it can be done.. |
Lunatic (VI) Inmate From: under the bed |
![]() I would guess this is an issue with the jQuery you are using setting some transparency on an element, and has nothing to do with your CSS. |
Paranoid (IV) Inmate From: London |
![]() Ok, so it's simply because opacity is inherited amongst all children, there is a workaround for this I found here |
Paranoid (IV) Inmate From: Florida |
![]() Mmm, this is what RGBA will be good for. |
Paranoid (IV) Inmate From: London |
![]() |
Nervous Wreck (II) Inmate From: |
![]() I've aborted using opacity and have just created a background png with a Photoshopped 90% opacity layer. Not ideal as the container background isn't quite continuous with the body background (given there are now 2 separate background images) but at least there are no images showing through the photoviewer. I appreciate your help. |