Lego2012
12/13/2016 - 3:53 PM

To darken an element using CSS

To darken an element using CSS

.home-featured .featured-content .entry {
    position: relative;
}

.home-featured .featured-content .entry:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.5);
}