html - How can I set up a CSS style for min and max width for responsive website? -
i have problem code. because trying create responsive website using min , max width using media queries. parts of queries fine there element doesn't read css media query.
i have navigation sidebar in left side. , want resize using media queries. if resized it. doesn't read min-width include in media query. when check code. color property working. when debug using developer tools in chrome. read css other css file named 'product.css' , not 'responsive.css'.
what should do?
here's simple css responsive.css
@media screen , (max-width: 1603px) { #searchhandler { color: red; min-width: 310px; } }
here's css product.css
#searchhandler { width: 20%; display:none; min-width: 316px; }
i newbie in css that's why having hard time part.
ok solved problem. not media query links inluding css file in header.
my old code this
<link rel="stylesheet" type="text/css" href="./css/product.css" media="all" /> <link rel="stylesheet" type="text/css" href="./css/responsive.css" />
it should
<link rel="stylesheet" type="text/css" href="./css/responsive.css" media="all" /> <link rel="stylesheet" type="text/css" href="./css/product.css" />
Comments
Post a Comment