Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

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


stephenturner98

Question

6 answers to this question

Recommended Posts

  • 1

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
  • 0
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
  • 0
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
  • 0
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
  • 0
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...