Jump to content

How to replace 7.0 banner image with css gradation

Recommended Posts

  • Replies 3
  • Views 173
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

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. 

Screen Shot 2022-06-03 at 10.53.41 AM.png

Edited by nwhittlesey
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.