Jump to content

Header Background Image {7.1}

Recommended Posts

Hi there, 

Pretty new to CSS. Can anyone help me with adding a background image to my header in version 7.1?

I was thinking this would work but proving failure thus far. 

 

header{
  background-image: url("URL-Link-in-custom-files.jpg")

}

 

Thanks

Link to comment
  • Replies 1
  • Views 557
  • Created
  • Last Reply

Add to Home . Design > Custom CSS

header#header {
    background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

 

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

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.