Jump to content

How to remove spaces between blocks on a page

Recommended Posts

Try adding to Design > Custom CSS

@media screen and (min-width:901px) {
div#block-yui_3_17_2_1_1655210687268_49254 {
    padding-top: 0px;
    padding-right: 0px;
}
div#block-yui_3_17_2_1_1655146560514_13265 {
    padding-top: 0;
    padding-left: 0px;
}
div#block-yui_3_17_2_1_1654663240794_4650 {
    padding-bottom: 0px !important;
}
}

 

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
5 hours ago, CelsoDiniz said:

Hi!

It works perfectly on the desktop! THANKS! 

Is there a way to make it also work on the mobile version (picture above)?

Thanks!

Celso.

With mobile, use this code

@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1654663240794_4650 {
    padding-bottom: 0px !important;
}
div#block-yui_3_17_2_1_1655210687268_49254 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
div#block-yui_3_17_2_1_1655146560514_13265 {
    padding-top: 0px !important;
}
}

 

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

Hi! Sure thing. It looks like this now:

/* remove padding from sections in the home page on the DESKTOP BEACH */
@media screen and (min-width:901px) {
div#block-yui_3_17_2_1_1655210687268_49254 {
    padding-top: 0px;
    padding-right: 0px;
}
div#block-yui_3_17_2_1_1655146560514_13265 {
    padding-top: 0;
    padding-left: 0px;
}
div#block-yui_3_17_2_1_1654663240794_4650 {
    padding-bottom: 0px !important;
}
  
/* remove padding from sections in the home page on the MOBILE BEACH */
@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1654663240794_4650 {
    padding-bottom: 0px !important;
}
div#block-yui_3_17_2_1_1655210687268_49254 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
div#block-yui_3_17_2_1_1655146560514_13265 {
    padding-top: 0px !important;
}
} 

THANKS!

Link to comment

You missing a } 

The code should be

/* remove padding from sections in the home page on the DESKTOP BEACH */
@media screen and (min-width:901px) {
div#block-yui_3_17_2_1_1655210687268_49254 {
    padding-top: 0px;
    padding-right: 0px;
}
div#block-yui_3_17_2_1_1655146560514_13265 {
    padding-top: 0;
    padding-left: 0px;
}
div#block-yui_3_17_2_1_1654663240794_4650 {
    padding-bottom: 0px !important;
}}
  
/* remove padding from sections in the home page on the MOBILE BEACH */
@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1654663240794_4650 {
    padding-bottom: 0px !important;
}
div#block-yui_3_17_2_1_1655210687268_49254 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
div#block-yui_3_17_2_1_1655146560514_13265 {
    padding-top: 0px !important;
}
} 

 

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

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.