Jump to content

[Share] Reduce space between Heading - Paragraph

Recommended Posts

To reduce space between Heading - Paragraphimage.thumb.png.0e4d71ba3cf91fd067f22c62ddc8d974.png

You can use these CSS code.

#1. Reduce space between Heading - Paragraph on All Blocks

h1, h2, h3 {
margin-bottom: 0px;
}
h1+p, h2+p, h3+p {
margin-top: 0px;
}

image.png.b89eeb736b3d160536bb4222c3530c59.png

result like this

image.png.385734f396836c4f9b0eb9af5d1079d7.png

#2. Reduce space between Heading - Paragraph on Specific Text Block

First, you need to find ID of Text. You can use below tool.

In my example, we will have: #block-yui_3_17_2_1_1722898813189_4140

image.png.cdf7883551755af6810c55ab625e1a38.png

Next, use this CSS code

#block-yui_3_17_2_1_1722898813189_4140 {
h1, h2, h3 {
margin-bottom: 0px;
}
h1+p, h2+p, h3+p {
margin-top: 0px;
}}

#3. Reduce space on Mobile Only

@media screen and (max-width:767px) {
h1, h2, h3 {
margin-bottom: 0px;
}
h1+p, h2+p, h3+p {
margin-top: 0px;
}}

#4. Reduce space on Desktop Only

@media screen and (min-width:768px) {
h1, h2, h3 {
margin-bottom: 0px;
}
h1+p, h2+p, h3+p {
margin-top: 0px;
}}

#5. Reduce space on One Page only

First, find Page ID. Use #2 tool.

In my example, we will have: #collection-66aef2caff007776a825a948

image.png.715c56a4de81d0512ecf44fbe534dc44.png

Next, use CSS code

#collection-66aef2caff007776a825a948 {
h1, h2, h3 {
margin-bottom: 0px;
}
h1+p, h2+p, h3+p {
margin-top: 0px;
}}

 

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
  • Replies 0
  • Views 706
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.