- This topic has 8 replies, 3 voices, and was last updated 7 years ago by
Tom.
-
AuthorPosts
-
November 21, 2016 at 4:27 am #246236
Sebastian
Hi,
I have a problem:
I built a small site: http://bode.codable.de/. For the header and the content area, I used the following CSS Code (in child themes style.css):
#masthead, .one-container .container, h1.entry-header , h1.page-header { background: rgba(255, 255, 255, 0.85) !important; }
The content area is white and transparent, but it doesn’t work for the header (#masthead).
Interesting: It get’s transparent as it should be, if I use the “inspector” (STRG + SHIFT + Q) in Firefox.
Any suggestions?
Thanks
SebastianNovember 21, 2016 at 5:07 am #246245dasigna
… weird!
already tried to put the transparency into another div? header or inside-header eg.?
what happens if you deactivate the autooptimize?November 21, 2016 at 9:26 am #246318Tom
Lead DeveloperLead DeveloperThat is strange..
My initial thought was the same as dasigna – another element had the same background inside the header causing the layers to stack.
Couldn’t find that happening though.
What if you only use #masthead (or .site-header) in your CSS and omit the other selectors for now?
November 21, 2016 at 10:58 am #246347Sebastian
Strange, indeed.
I deactivated Autoptimize. That changes nothing.
I tried to use several CSS classes in several variations. Nothing happens.
There is only the #masthead. And as I said, the opacity works fine, when I inspect an element. When I close it, the header gets completely white again.
I leave it as it is for now. If opacity is really needed in the header, I will use an pixel image. I hope, that will work. π
November 21, 2016 at 3:13 pm #246455Tom
Lead DeveloperLead DeveloperI wonder what happens when you reduce the opacity down to something like .2?
November 21, 2016 at 11:25 pm #246521Sebastian
What the heck π
Then the header gets opacity. Why is the effect in the header lower than in the content area. It looks like the half of the opacity.
What could be the reason for that?
Good to know that I have to set the values seperately.
November 22, 2016 at 12:17 am #246543Tom
Lead DeveloperLead DeveloperEvery once in a while something comes along that makes no sense. This is one of those times.
It looks like the background is being applied twice to the header – stacking on top of each other making it less transparent than the other elements.
The CSS I can see using developer tools says otherwise.
What if you remove the header background color completely from the Colors add-on?
November 22, 2016 at 1:04 am #246551Sebastian
That changes nothing.
However, thanks to your tip, I know now, how to deal with it.
If I find the reason, I’ll let you know.
November 22, 2016 at 10:02 am #246720Tom
Lead DeveloperLead DeveloperSounds good π
-
AuthorPosts
- You must be logged in to reply to this topic.