Topic: stopping inherited background images (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
posted 12-07-2009 11:22
Hello, |
Paranoid (IV) Inmate From: London |
posted 12-07-2009 12:51
Can you show us an example of your code? Or post a direct link to your site? |
Nervous Wreck (II) Inmate From: |
posted 12-07-2009 13:22
Hello, |
Nervous Wreck (II) Inmate From: |
posted 12-07-2009 13:45
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 |
posted 12-07-2009 15:35
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 |
posted 12-07-2009 15:35
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 |
posted 12-08-2009 10:02
Mmm, this is what RGBA will be good for. |
Paranoid (IV) Inmate From: London |
posted 12-08-2009 10:45 |
Nervous Wreck (II) Inmate From: |
posted 12-08-2009 13:38
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. |