Custom CSS not working on mobile view
-
Hi, love the clean simple look of the modal and have customised it for the desktop view which works fine. However when the screen width drops below about 980px the custom CSS is lost and the modal reverts back to the default plugin styling including the large left and right margins.
I have tried everything to override the default styling including setting a breakpoint of 500px and forcing the width of the modal to 100% and setting the margins to 1px to force the modal to be full width on a mobile screen but nothing works. The code i am using is:/* Make login modal full width on mobile */
@media (max-width: 500px) {
.login-modal-box .modal-content {
margin: 1px !important;
width: 100% !important;
}
}The website is using Divi but the primary and secondary menus are stock standard (IE: not using a template) as is the page where the login/logout module is placed. The “display as a login form” is not ticked.
If i can get the width sorted i can then add the other styling. Are you able to provide some pointers or code snippet to get the styling to work on a mobile phone (or be responsive no matter the screen size)?
Many thanks in advance, Kevin.
- The topic ‘Custom CSS not working on mobile view’ is closed to new replies.