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
  • print
  • handheld
  • tv
  • etc..

you have excellent article this


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -