css - @media queries not applying some styles -
i have following media query applies background style body successfully, not change others, ideas pleople?
@media (min-width: 980px) , (max-width: 1200px) { body { background:#f00; } .contentsearch.navbar { margin-left: -475px !important; top: 200px !important; width: 950px !important; } .contenttabs { margin-left: -475px !important; width: 948px !important; } .ui-tabs-panel { width: 948px !important; } }
heres original css these elements
.contentsearch.navbar { position:absolute; top:200px; width:1170px; left:50%; margin-left:-585px; } .contenttabs { border-bottom: 1px solid #aaaaaa; border-left: 1px solid #aaaaaa; border-right: 1px solid #aaaaaa; bottom: 55px; height: auto !important; left: 50%; margin-left: -585px; position: absolute !important; top: 241px; width: 1168px; } .ui-tabs-panel { border-bottom: 1px solid #dddddd !important; border-top: 1px solid #cccccc !important; bottom: -1px !important; height: auto !important; overflow: auto; position: absolute !important; top: 47px !important; width: 1168px; }
try :
@media , (min-width: 980px) , (max-width: 1200px){ .... }
you forgot declared on type of screen want active @media all and.....
you have :
- all
- screen
- handheld
- tv
- etc..
Comments
Post a Comment