padding

jojo.wong
2 Posts
jojo.wong posted this 11 July 2024
Ask a Question

After upload my finished website, i found that the left right and margin in mobile is different in different mobile. Such as, in elderly mobile, the wording are getting big, then left right margin are very very near to left right margin. Or some words are out of the screen, i know some people or elderly have set the screen to larger, but i see others website can avoid this problem. Is it Nice page have a tools to avoid the margin problems? Just like,the left right margin can keep in 20 px... even in diferent mobile size or device... CSS can helps?

Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 11 July 2024

Hello Jojo,

Thanks for contacting us!

There are ways to tackle these margin issues on mobile devices using Nicepage and CSS.

Nicepage utilizes a grid system for layout. This allows you to define margins and paddings for different screen sizes.

NicePage allows you to design and preview your website in different screen sizes.
Make sure to adjust the layout for mobile views and set the appropriate padding and margins.

NicePage allows you to add custom CSS.
Navigate to the "Page Settings" or "Site Settings" and add the CSS code there to ensure consistent margins and responsive design.

Here's an example media query for mobile margins:

@media only screen and (max-width: 768px) {
.your-content-class {
margin-left: 20px;
margin-right: 20px;
}
}

While setting a fixed margin like 20px might work for some mobiles, it might not be ideal for all.
However, you can try and see the result.

If you have any more questions, feel free to ask.

...................................................
Sincerely,
George.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

You must log in or register to leave comments