Mobile.css

Responsive WordPress theme suitable for Schools, Colleges or educational websites.
GK User
Wed Dec 03, 2014 3:23 pm
How do I style separately for responsive? I thought all the changes I made in mobile.css would override other styles. This is not the case.... What am I doing wrong? Thanks in advance.
User avatar
Fresh Boarder

GK User
Wed Dec 03, 2014 8:09 pm
troyskey wrote:How do I style separately for responsive? I thought all the changes I made in mobile.css would override other styles. This is not the case.... What am I doing wrong? Thanks in advance.



Not sure if this will help but I've had to use !important in the mobile.css next to the css attribute. For example,
Code: Select all
body {overflow: hidden !important}


or use the override.css file and set an @media to the size of the screen
Code: Select all
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
body {overflow: hidden !important}
}

User avatar
Fresh Boarder

GK User
Thu Dec 04, 2014 8:40 am
Hi,

Both solution are good, if you want to have all overriden css in one file, you can use override.css file with media queries, regarding the !important - it depends on css rules used earlier, but in the override there's generally no need to use "!important".
User avatar
Moderator


cron