Jump to content

how to hide specific spacer blocks on mobile only

Recommended Posts

Site URL: https://www.betweentwonaps.com/

hello there!

 

i have some spacer blocks that help align some images... but on mobile they pile up above and below the images to create great big spaces that make too much of a gap.

 

is it possible to use code to target specific spacer blocks so they hide on mobile?

(and how do you find out those block ids for in the code?)

 

any help appreciated! thanks!

 

Link to comment
  • btn2020 changed the title to how to hide specific spacer blocks on mobile only
  • Replies 1
  • Views 1.4k
  • Created
  • Last Reply

Add this code to Home > Design > Custom CSS

/* remove spacer block mobile */
@media screen and (max-width:767px) {
	.spacer-block-id {
	display: none;
}
}

Find id with https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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.