Too much padding on main page - Forum | JoomShaper
Solved Helix Framework

Too much padding on main page

Asked by Jay Thistle 3 years ago Last activity 3 years ago

Hi there,
I want to reduce the amount of padding at the top of the main body from 100px to 20px and added this code to the custom code of the template parameters but it is not changing it...

sp-main-body {

padding: 20px 0;
}
I have added this same code to a few other sites I built using the Helix template to reduce that same padding and they are fine. Can you assist?

Accepted answer

Marked as the solution
Jay Thistle Asked this

Great...that works. Thanks so much for your speedy response.... Jay

1 more reply

Paul Frankowski Senior Staff

Hi Jay,

indeed that CSS code

#sp-main-body {
  padding: 20px 0;
}

is fully correct, but inside your Custom CSS you used it only for Mobile view @media (max-width: 576px){ ... }
and then work!

If you want to use it on all views, use that line above @media...

foto_9126_2022.png

Log in to reply.