How to make the mobile terminal display the margins on both sides?

[ad_1]

Hi @ninglexi,

Can you provide the link to the site in question?

Here is the demo website. When the website is on mobile or pad, there is no space on both sides.
Of course right angles are fine on any terminal, but when the corners are rounded, it’s bad.

themes

  • This reply was modified 2 hours, 58 minutes ago by ninglexi.

You can try adding this CSS:

@media (max-width: 768px) {
    body {
        margin: 0 10px;
    }
}

Thank you.
Useful when the content is one column on mobile and pad.
When reducing the size of the browser, or two columns, the left and right are still on the side.

img

Try replacing 768 in the code with a higher value like 1024.

You’re welcome @ninglexi!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer