Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] CSS Problem (header)

Home Forums Support [Resolved] CSS Problem (header)

Home Forums Support CSS Problem (header)

  • This topic has 8 replies, 3 voices, and was last updated 7 years ago by Tom.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #246236


    I have a problem:

    I built a small site: 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 , {
        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?



    … weird!
    already tried to put the transparency into another div? header or inside-header eg.?
    what happens if you deactivate the autooptimize?

    Lead Developer
    Lead Developer

    That 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?


    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. πŸ˜€

    Lead Developer
    Lead Developer

    I wonder what happens when you reduce the opacity down to something like .2?


    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.

    Lead Developer
    Lead Developer

    Every 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?


    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.

    Lead Developer
    Lead Developer

    Sounds good πŸ™‚

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.