-
AuthorPosts
-
March 9, 2015 at 12:52 am #223089
Would be cool if you could easily darken background images that you assign to content bands. I know this is possible through CSS and would be easiest to do rather than edit the image and re-upload it. The CSS that’s needed is:
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(‘http://placehold.it/350×150’);
However, it’s practically impossible to edit the CSS that controls the background image right now on Content bands
March 9, 2015 at 4:06 am #223208Hey Ben,
You can insert that code in the content band’s style field and it’ll override the background. I’ve tested it in my dev site.
Thanks.
February 23, 2016 at 12:42 pm #809031I cannot get this to work… I plug my image in the url spot and it show the image but is not transparent (darker) on top. And if I remove the image the background color is there (50% black). Any help here?
Using Cornerstone. Section background type is slashed out (tried with a background image as well). And I have this css in the style block.
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(‘http://www.cliffhilton.com/corradovr6/wp-content/uploads/2016/02/my-car.jpg’);
February 23, 2016 at 10:01 pm #809564Hi There,
When I tried that CSS this is the result:
Do you want a transparent black on top of the image in a section like this:
If yes, please add class black-overlay on the section class field.
Then add the following CSS on Settings > Custom > CSS.black-overlay{ background: url('http://www.cliffhilton.com/corradovr6/wp-content/uploads/2016/02/my-car.jpg') center no-repeat !important; position:relative; } .black-overlay:before{ background: rgba(0,0,0,.8); width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
Hope this helps.
-
AuthorPosts