Jump to content

How do I... custom height of a section?

Recommended Posts

Add to Home > Design > Custom CSS

[data-section-id="abcxyz"] {
	min-height: unset !important;
	height: 50px !important;
}

Find data section id with this tool. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff

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
  • 1 year later...
On 7/1/2021 at 8:41 AM, andfriendshippod said:

This worked for me! but now how do i make it responsive on mobile? Thank you.

You can setup code for both desktop - mobile

[data-section-id="abcxyz"] {
	min-height: unset !important;
	height: 50px !important;
}
@media screen and (max-width:767px) {
[data-section-id="abcxyz"] {
	min-height: unset !important;
	height: 250px !important;
}
}

 

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
  • 3 months later...
On 7/2/2021 at 10:08 AM, tuanphan said:

You can setup code for both desktop - mobile

[data-section-id="abcxyz"] {
	min-height: unset !important;
	height: 50px !important;
}
@media screen and (max-width:767px) {
[data-section-id="abcxyz"] {
	min-height: unset !important;
	height: 250px !important;
}
}

 

This did not work for me, is there another code option?

Link to comment
On 10/15/2021 at 9:17 PM, Countonlola1 said:

This did not work for me, is there another code option?

Have you changed abcxyz to new id yet?

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
  • 6 months later...
On 7/2/2021 at 3:08 AM, tuanphan said:

You can setup code for both desktop - mobile

[data-section-id="abcxyz"] {
	min-height: unset !important;
	height: 50px !important;
}
@media screen and (max-width:767px) {
[data-section-id="abcxyz"] {
	min-height: unset !important;
	height: 250px !important;
}
}

 

This worked for me, thanks!

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.