Home › Forums › Support › The right margin of the container does not fit correctly on movile version
- This topic has 9 replies, 3 voices, and was last updated 1 year, 7 months ago by
Tom.
-
AuthorPosts
-
November 26, 2020 at 4:54 am #1549404
Ivan
Hi,
First of all I have GeneratePress theme 3.0.2 and GeneratePress Premium 1.12.2In the mobile version of my website http://emcolimpiezas.es, the right margin of the container does not fit correctly on the mobile. With your finger you can go right and left, which is not correct.
I was looking at the container settings (margin and padding) but I haven’t been able to fix it.
I don’t know if I explain myself, that’s why I am attaching a screenshot.
https://www.screencast.com/t/x2QMNdfPThx,
IvanNovember 26, 2020 at 7:00 am #1549813David
StaffCustomer SupportHi there,
the Footer you have constructed in Elementor, the Widget containing the image has lots of negative Margin applied to it. Remove the negative margins to resolve the issue.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 27, 2020 at 1:48 am #1551439Ivan
Hi @David,
You were right, modifying the margin of the image has fixed the space.
The “Services” tab continued to have this margin and I cannot locate it, I have not seen any negative margin.
Can you tell me this?November 27, 2020 at 4:10 am #1551716David
StaffCustomer SupportThe custom CSS you have for setting the mobile logo background color and size.
Change it to this:#mobile-header .navigation-branding, #mobile-header .site-logo.mobile-header-logo { flex: 1 0 100%; justify-content: center; background: #f2e0bf; margin-left: 0; margin-right: 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 27, 2020 at 5:44 am #1551926Ivan
David I don’t understand you.
In the whole web page the margin works correctly, but in the “Services” tab that margin still exists.I have modified the CSS with which you indicate but the “Services” tab remains the same.
November 27, 2020 at 6:40 am #1552070David
StaffCustomer SupportI am not seeing the issue now – can you try clearing your browser cache.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 27, 2020 at 6:59 am #1552472Ivan
I have clean the cache, but it remains the same. I have also tried another browser, but the margins are still there.
I’m talking about how it looks on Mobile.
https://www.screencast.com/t/ltas52YENovember 27, 2020 at 10:20 am #1553050Tom
Lead DeveloperLead DeveloperHi there,
It must be something within the content of that page.
You can do this to prevent it:
body, html { overflow-x: hidden; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentNovember 27, 2020 at 11:53 am #1553284Ivan
November 28, 2020 at 11:21 am #1555351Tom
Lead DeveloperLead DeveloperNo worries – glad it’s working! ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.