[Resolved] sticky menu transparancy layer

Home Forums Support [Resolved] sticky menu transparancy layer

Home Forums Support sticky menu transparancy layer

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1000729
    Ewout

    Hello,

    On my website http://www.tyker-concept.nl/

    i have a sticky menu header with a white transparany layer behind it created in Generatepress Elements.

    It shows ok in most browsers, but only in the Edge browser, the transparancy layer isn’t shown when you scroll down…

    Any ideas on how to get it also shown in Edge?

    Kind regards Ewout

    #1001150
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You have this custom CSS:

    .main-navigation {
    	background-color: rgb(255,255,255,0.7)
    }

    Try replacing it with this:

    .main-navigation {
    	background-color: rgba(255,255,255,0.7)
    }
    #1001244
    Ewout

    Wauw, that did the trick.

    But what realy is the difference between rgb and rgba, and why does Edge not ‘like’ it?

    Kind regards,

    Ewout

    #1001245
    Ewout

    One other question,

    The logo of the website on edge seems differently placed than on Chrome etc…

    I have this CSS for it:

    .header-image {
    padding-top: 32px;
    }

    But for edge it isnt inline with the menu text, wich on Chrome it is.

    Hope i’m not a pain in the ass:)

    Kind regards,

    Ewout

    #1001284
    Tom
    Lead Developer
    Lead Developer

    The a makes it so transparency is supported. Chrome is smart and assumes you want it, while Edge.. isn’t as smart.

    As for the spacing, try this:

    .site-logo {
        float: left;
    }
    #1001290
    Ewout

    Haha lol!

    Okay, good and nice to know!

    For the code snippet you gave: Huray!!!

    Thanks for your time and help!

    Kind regards,

    Ewout

    #1001892
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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