media queries being overridden by original csss
-
Hi.am using 2012 child theme and for some reason my media queries will not work, they are overridden by the main css. even when i try to hide the sidebars they are still there – below are the snippets. First i need to hide the sidebars and second the header i need to change the logo and search bar from inline-block to block, so rather blocks side by side they are blocks under each other – have no idea why nothing changes – does 2012 have a viewport file tucked away that i need to find?
/* Header */ .site-logo { float:left; display:inline-block; width: 60%; vertical-align: top; } .header-search { float:right; display:inline-block; width: 40%; vertical-align: top; margin-top:2%; } img.logo { height:auto; width:auto; } /* Tablet */ @media only screen and (min-width: 720px) and (max-width: 800px) { #sidebar {display:none;} #sidebar-profile {display:none;} } /* Mobile */ @media only screen and (max-width: 719px) { #sidebar {display:none;} #sidebar-profile {display:none;} #site-content-left { width: 95%; margin:0 auto; } .site-logo { display:block; width: 100%; margin: 0 auto; } img.logo { height:auto; width:auto; margin: 0 auto; } .header-search { display:block; width: 100%; margin: 0 auto; }} /* Mobile - 320px */ @media only screen and (max-width: 479px) { #sidebar {display:none;} #sidebar-profile {display:none;} #site-content-left { width: 95%; margin:0 auto; } .site-logo { display:block; width: 100%; margin: 0 auto; } img.logo { height:auto; width:auto; margin: 0 auto; } .header-search { display:block; width: 100%; margin: 0 auto; }}
site
https://www.photohunters.orgThank you Melanie
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘media queries being overridden by original csss’ is closed to new replies.