Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS resizing of background image in block Reply To: resizing of background image in block

#282307
mrroy44
Participant

I found a way of doing it by adding Row ID and using this code

#row-1 {
background-image: url(https://weddingreport.nl/wp-content/uploads/2018/05/rsz_foto-340-bewerkt.jpg);
background-size:cover;
}

It isn’t however what Gambit can be using on their page, because they run this demo WP account where you can see the settings in visual composer, and they didn’t attach a Row ID.

But it works… still hope to find out how they did it. It seems more dynamic on their page. If I change an image on their demo-wp page out of my own images, it also is responsive, without adding it as back-ground image in CSS