Site logo

Archived topic

Custom padding on "Sections"

5 replies · Started by David on January 26, 2019

Viewing posts 1–6 of 6

Hi Tom & Co!

I'm trying to customize a paragraph padding on a section zone. I think we can do this with CSS code and Custom Classes... ?? And I would like this code affects only at Desktop version, not on mobile.

To understand it better, I attach an image with an example. I want to fit the text under the red lines only on desktop version.

Thank you :)

Hi there,

Try this for your HTML:

<div class="narrow-content">
    my narrow content here
</div>

Then this CSS:

@media (min-width: 769px) {
    .narrow-content {
        max-width: 500px;
        margin: auto;
    }
}

Yeah! It works thank you!

Buuut... now all of paragraph is on the left side. I can move the "entire block of text" to the center? Move the paragraph, not center the text.

Thank you Leo!

¡Yeah Leo! It works perfect. Thank you.

Congratulations, your support team / system is excelent. I'm very happy with it.

Have a nice day. Hugs from Catalonia!

Glad we have been helpful :)

This archived topic is closed to new replies.