cannot center content div for for different mobile devices
-
Hi,
I’m having difficulties to center the content bits on all mobile devices instead of having it all left aligned.
I’ve been setting the left/right margins of the #inner-wrapper to a percentage on the different media queries but I don’t seem to get the logic of how it works. How exactly do I need to define min-width and max-width in relation to Portrait and landscape views on mobile?
Any tips/hints super welcome,
thanks!Daniela.
‘@media only screen and (min-width: 768px) {
#navigation { display: none!important; }
#inner-wrapper {
padding-left:30%!important;
padding-right:30%!important;
}
}@media only screen and (max-width: 500px) {
/* Styles placed here will only apply to screens less than 1000 pixels wide */
.nav-toggle { display: none !important; }
#inner-wrapper {
padding-left:20%!important;
padding-right:20%!important;
}
.sow-slider-base {
width:95%!important;
text-align:center!important;
margin: 0 auto!important;
}
.sow-slider-base .sow-slide-nav a em {
font-size: 12px!important;
}}
@media only screen and (min-width: 320px) {
/* Styles placed here will only apply to screens less than 768 pixels wide */
.nav-toggle { display: none !important; }
}’
- The topic ‘cannot center content div for for different mobile devices’ is closed to new replies.