nwhittlesey Posted June 2, 2022 Share Posted June 2, 2022 Site URL: https://reformconsulting.com I'm trying to switch out my bloated jpg banner background for a css gradation—if possible. This is the color I want, but I can't find the correct selector: When I use .desc-wrapper it only extends the width of the type. background-image: linear-gradient(#000 0%, #00324f 55%, #003963 100%) Thanks. Link to comment
tuanphan Posted June 3, 2022 Share Posted June 3, 2022 Use this CSS body.homepage .banner-thumbnail-wrapper.has-description { background-image: linear-gradient(#000 0%, #00324f 55%, #003963 100%); background-color: transparent !important; } body.homepage .banner-thumbnail-wrapper.has-description img { visibility: hidden; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
nwhittlesey Posted June 3, 2022 Author Share Posted June 3, 2022 (edited) Thanks, I tried that on a test page. When I deleted the jpg background image to see if the color was there, it wasn't. No color, so no visible text. I'm starting to think it might be better to leave it as is or try to switch to svg. My goal was to shorten load time. Edited June 3, 2022 by nwhittlesey Link to comment
tuanphan Posted June 10, 2022 Share Posted June 10, 2022 If you remove the image, the page code structure will change so will need a new code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment