Site logo

Archived topic

Color overlay header background image

3 replies · Started by Radek on January 24, 2020

Viewing posts 1–4 of 4

Hi, is there an CSS (or some) way to make semitransparent color overlay for header background image (set by customizer), that will have no effect to web logo ? For better understandig: only customizer is used (not Elements) and layers from bottom must be: header background image / semitransparent color overlay / web logo (image or website name+description).

Hi there,

try this CSS:

.inside-header {
    position: relative;
    z-index: 1;
}

.site-logo:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: -1;
}

Soooooo simple if you know how :)
Thanx a lot

You're welcome

This archived topic is closed to new replies.