Custom layout width for widget on mobile
-
Hello,
I set my main layout on mobile device to 95% with the following this code:
@media only screen and (max-width: 959px){ #main #content-wrap.container{ width: 95% !important; max-width: 95% !important; } }It works nice but the only problem is that my primary sidebar widget remains 100% on mobile. So I tried this code but unfortunately no success:
@media only screen and (max-width: 959px){ #widget-area.sidebar-primary #content-wrap .container{ float: none !important; width: 95% !important; padding: 0 !important; border: 0; } }Can you please have a look at my second code and help me to correct it? Thank you in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Custom layout width for widget on mobile’ is closed to new replies.
