Boxed layout in mobile viewport

Hi there,

I have the boxed layout for my website so I can show background images using layouts. When viewing the website on a mobile phone I notice that there are quite obvious margins on the left and the right of the screen. I am just wondering if there is any way that I can reduce these margins so I can get back more of the horizontal screen space and lessen the amount of scrolling to view the content.

It is particularly obvious when rotating the smartphone into landscape view.

Comments

  • Hi,

    all you can do is increase wrapper width on mobile devices and this can be done within below css:
    @media only screen and (max-width: 479px) { #Wrapper { width: 350px; } }
    Thanks!
  • Had to add an !important declaration for it to work - thanks for that!
    Incidentally, there would not be anyway to decrease the side padding in mobile display? I am unsure of what div element to target. I want to make use of the extra white space that now appears and stretch out the content more horizontally.

    Wish there was a developer console tool on a mobile phone.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.