Jump to content


This topic is now archived and is closed to further replies.


Reducing side margins on mobile device

Recommended Posts


Hoping for a simple fix to reduce the size of the margins on either side of my content on a mobile device.


you can view at www.rocktownbicycles.com (on your mobile device of course)


It does seem to help if I make the width of my site extremely wide (1600+px) but that adversely affects my desktop site.




Share this post

Link to post
Share on other sites

Hi Ken,


To do this you're going to need to use media queries, see here for more information - https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries

You could also use the Browser Specific CSS in the DMS Pro Tools if you're not comfortable with media queries. Simply prefix your custom CSS with .mobile


For example.


.mobile .classNameHere {

  margin-left: 0;

  margin-right: 0;


Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • dwpoyner
      By dwpoyner+
      Not sure exactly what is causing the issue. For some reason, why you view my site on mobile, the menu does not show up. It will pop up, but it is black. You can check it out here: http://dev.caryfbc.org. I'm also attaching a screenshot where I shrunk my browser down. Any suggestions?

    • kwaoru
      By kwaoru
      I have been using DMS and pagelines.
      I am facing to a huge trouble with the appearance of one of my page on mobile (smart phones) built with pagelines.
      However I haven’t come to any solutions to organise either edit the appearance of mobile view to look neat or deactivate the responsive function. 
      Now it looks totally messy on the phone...
      1. Is there any way to edit the appearance of the mobile version (responsive theme)?
      2. Is there any way to deactivate responsive function?
      If I could receive support from you to go thorough this process I would be happy to be a pro member. 
      Looking forward to hearing from you.
    • poseyg
      By poseyg+
      This just happened to a site I'm working on. When I decrease width of browser to check for responsiveness...the pagelines content section is not responding???
    • yemoonyah
      By yemoonyah+
      While building my website, I set a padding of 5%, 25%, 5%, 25% so the text on the pages is not too wide.
      However, it looks crappy on mobile.
      How do I get the same effect and still have it look good on mobile?
      Example: http://yemoonyah.com/quiz
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      can I limit the overall of MegaNav on mobile? When I look at michaelkummer.com on a mobile device, the menu takes up more than a third of the screen space. Using CSS to limit max-height doesn't seem to work. Is there another/better way to reduce the overall height to maybe 10% of the screen available?