Jump to content

Adding Images above menu items (CSS)

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

22 hours ago, LaneStadelmaier said:

Site URL: http://www.houseofhope.amsterdam/

Hi, I want to add a photo above the navigation bar. Which CSS code do I need?

Add to Design > Custom CSS

header#header:before {
    background-image: url(https://cdn.pixabay.com/photo/2019/12/20/18/28/fir-4709032__480.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    width: 100%;
    height: 350px;
    content: "";
}
/* mobile */
@media screen and (max-width:767px) {
header#header:before {
    height: 200px;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.