[Resolved] transparent background color and bg image

Home Forums Support [Resolved] transparent background color and bg image

Home Forums Support transparent background color and bg image

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #181870
    Jasper

    Can i have a transparent bg color for the header together with a header bg image?

    Now it seems to give preference to the image.

    #181898
    Tom
    Lead Developer
    Lead Developer

    Like an overlay color over the image?

    Not currently – there’s no method for adding an overlay colors over a background image in CSS.

    It would require some extra CSS to be added like this (not sure if it will work, just a though):

    .site-header:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: red;
        opacity: .6; 
        display: block;
    }
    
    .inside-header {
        position: relative;
        z-index: 1;
    }

    That assumes you’re use the site header and not the Page Header add-on.

    • This reply was modified 8 years ago by Tom.
    • This reply was modified 8 years ago by Tom.
    #181903
    Jasper

    yes, like an overlay

    the css does not work
    i use the header with the navmenu float right

    #181904
    Tom
    Lead Developer
    Lead Developer

    Can you link me to your site?

    #181908
    Jasper
    #181920
    Tom
    Lead Developer
    Lead Developer
    #181921
    Jasper

    that does it, thanks

    #181922
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

    #583008
    Cynthia

    Hi Tom – I would like to have my content background color transparent, specifically
    rgba(0, 14, 35, 0.6); however the customization area – Colors > Content > Background field does not accept that value. So, when I attempt to use the Simple CSS area this doesn’t work either.

    content {
    background-color: rgba(0, 14, 35, 0.6);
    }

    Any suggestions?

    #583019
    David
    Staff
    Customer Support

    Hi Cynthia,

    on the color palette the second slider adjusts the transparency. Just adjust this and then the color field will become rgba – once done copy, highlight all the field and paste =)

    #583028
    Cynthia

    David – Thank you for pointing out that 2nd slider….I’ve never noticed it there! LOL.

    And BTW – I realized that I am able to enter the value: rgba(0, 14, 35, 0.6) but just without the ; at the end. The semicolon was making the field not accept the value.

    The slider is definitely easier.

    THANK YOU!!

    #583032
    David
    Staff
    Customer Support

    You’re welcome Cynthia

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