Jump to content

Brine - How to keep the banner full width but constrain body text?

Recommended Posts

Hi everyone!

I use the Brine template, and am trying to figure out how to keep my hero banner and header to the full width of the screen, while keeping the body content constrained. I've tried using the following: 

body {
    max-width: 960px;
    margin: 0 auto;
}

This does change the content to the width I want it at, but unfortunately also squishes the hero banner into the same size. Is there any way I can achieve the look I want without using spacers on the page?

Thank you!

Link to comment
  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Hi NaomiHt,

I just made changes for this container to display full-width while keep the body content within a smaller width, I can implement on your site if you have an url to check?

image.thumb.png.1f223e803d2ffae96deb814b824ce560.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Thank you @RyanDejaegher!

That works perfectly, however I realise I forgot to mention that I also wanted the header to remain full width along with the banner - I managed to sort that out with this:

.tweak-site-width-option-full-background .Header-inner {
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
}
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.