Site logo

Archived topic

Dispatch-Demo Custom Grid Background

1 reply · Started by Raul on January 27, 2021

Viewing posts 1–2 of 2

Hi,

I want to set a semi-transparent-background behind the header of my main grid. It works if I write my code in this CSS-line:

.wpsp-card .wpsp-content-wrap

But it affects also the other images on front page which use "contains wpsp-card". So I added new CSS and it seems to work:

.wpsp-grid .wpsp-content-wrap{   
    background-color: rgba(0, 0, 0, 0.35)!important;
    background: -webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(80, 50, 50, 0.5)), to(rgba(0, 0, 0, 0.3)))!important;	
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.5) 100%)!important;
}

It works but is this correct?

Hi there,

thats correct as the wpsp-grid class is only present on the lists your displaying in the grid.

This archived topic is closed to new replies.