Jump to content

CSS for colored background on horizontal gallery - spanning entire blog post page

Recommended Posts

  • Replies 1
  • Views 287
  • Created
  • Last Reply
On 4/9/2021 at 10:24 PM, SittinginFlorida said:

Site URL: https://studio-mcgee.com/az-homestead-project-the-kids-spaces/

 

Hi Squarespace Code Lovers! 

Does anyone know how to insert (custom code) a horizontal gallery block (FULL WIDTH) with a colored background ON a Blog Page (not landing page). Example attached with link to website that has this on a blog "story" page. 

I'm stumped 🙃

Thank you in advance 🙏

 

 

1505997788_ScreenShot2021-04-09at11_05_22AM.thumb.png.317369e145f1f58f05ddecd47a481935.png

Technically it can be achieve by target the row that contain the gallery block and the text, you can add a spacer above that row to target it using css.

try

body:not(.sqs-edit-mode) #block-yui_3_17_2_1_1618152424008_5736 {
  display: none;
}
#block-yui_3_17_2_1_1618152424008_5736 + .row {
  position: relative;
}
#block-yui_3_17_2_1_1618152424008_5736 + .row:before {
  content: '';
  position: absolute;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: red;
}

#block-yui_3_17_2_1_1618152424008_5736 is the spacer id, that can find using this extension

Squarespace ID Finder - Chrome Web Store (google.com)

image.thumb.png.59442ff514f3fe54d0d8ab3bb902078a.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

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.