Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 14h 26m 51s
Claim 50% off
Solved Templates

padding pagebuilder article

Asked by gralfitox 2 years ago Last activity 2 years ago

newskit template

Cant get padding in mobile devices to be fine

capture https://ibb.co/s95v7pH

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
2 years ago · edited

First CSS will fix global padding, use it.

Your idea is too risky. I don't recommend it. It can make only global mess! Of course, it's your site, not mine.


Read Helix Ultimate guide "Custom Code > Custom CSS"

12 more replies

Paul Frankowski Senior Staff
2 years ago · edited

For Mobile View use that Custom CSS (becuase default global template padding is too big as you noticed)

@media screen and (max-width: 740px) {
.blog-details-content .blog-content-wrap {padding: 0 10px 10px;}
}

About padding in Sections (SPPB), remember that they have SEPARATE settings for Mobile view. So if on Desktop view you used 75px or 100px by default it will be used everywhere also on Tablet & Mobile view - and you don't need that.

I talk about (that mistake that you already made)

padd24.gif

Edit that article in back-end editor maybe it will be easier to correct padding in Section.
And reload Cached css files to see changes. If you've done the same mistake in more articles, you have to edit all of them. One by one, and Save changes. This is the only way to correct space in some areas.

So you have to switch to Mobile and put smaller value in Section, for example, use 10px or 5px for padding (space).
info_2732_2024.gif

gralfitox Asked this

no way to customize a css file and avoid doing it for every article? and what file will it be?

gralfitox Asked this

seems to be working

thank you and sorry about the duplicity

Paul Frankowski Senior Staff

You're welcome, and have a nice & productive day.

gralfitox Asked this

same there, thank you very much

Paul Frankowski Senior Staff

use #sp-main-body BEFORE .container word

@media screen and (min-width: 1400px) { 
#sp-main-body .container { 
Paul Frankowski Senior Staff

Besides in SPPB Settings in Advanced > Container Maximum Width (increase value here!)

Screenshot 2024-11-07 at 13-31-27 SP Page Builder Pro - Joomla 5.2 - Zaplecze.png

Log in to reply.