Cant get rid of the padding & margin on mobile site
shana
Registered Users Posts: 7 Big grins
hi i was wondering if anyone could help me. Ive been trying for hours to get rid of the below code for mobile. Its creating unwanted space on my mobile.
@media screen and (max-width: 736px)
.sm-page-widget .sm-page-widget-content {
margin: 0 12px!important;
padding: 12px 0!important;
}
so I changed it to;
@media screen and (max-width: 736px)
.sm-page-widget .sm-page-widget-content {
margin: 0px!important;
padding:0px !important;
}
to no avail also wondering if its maybe to do with where im putting this css to overwrite it. Any help would be really appreciated.
@media screen and (max-width: 736px)
.sm-page-widget .sm-page-widget-content {
margin: 0 12px!important;
padding: 12px 0!important;
}
so I changed it to;
@media screen and (max-width: 736px)
.sm-page-widget .sm-page-widget-content {
margin: 0px!important;
padding:0px !important;
}
to no avail also wondering if its maybe to do with where im putting this css to overwrite it. Any help would be really appreciated.
0
Comments
We need a link to your site. Since you are a new member, you can't post live links, but just type in your web address like 'yourwebsite.com'.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Add this to your theme's custom CSS section:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Generally I add the
.sm-user-ui
to almost everything instead of using the!important
. Sometimes you need both.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I use the same code, however it’s a shame you can’t use decimal values. I find with 0 margin everything looks really bunched up on mobile and you have to add spacers between all the content blocks to make it look better. What I need is 0.5 or something.
www.scotthunterphotography.com
This is great but how can I only remove the padding from the photos (left and right) and not the text?
picomoments.smugmug.com
picomoments.smugmug.com
Hi there,
You've already posted a question on this here. Please don't cross post about the same question in different discussions. Thank you.
SmugMug Support Hero