Hi I am implementing responsive design for a website. Although the design works alright in firefox, but it does not in chrome neither on PC nor mobile. The style sheet styles-RWD.css
is this
/*CSS FOR MOBILE DEVICES*/
@media screen and (min-width: 0px) and (max-width: 480px) {
#sidebar {
display : none;
}
footer {
display : none;
}
#bann_cb {
display : none;
}
body {
width:auto;
background-color:white;
font-family: sans-serif;
color:orange;
margin:0px 2px 2px 2px;
padding:0;
}
#header {
display : none;
}
#content {
width:50%;
padding:0px 2px 2px 2px;
}
#box_bharat {
display:none;
}
#form {
width:auto;
padding:none;
}
#menu-bar {
width:auto;
}
#news_10 {
display:none;
}
#mob_heading {
display:block;
width:auto;
visibility:visible;
}
}
/*end css for mobile devices*/
The default styles are after this.
The index.php has these lines
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="styles-rwd.css" />
Now this is working in firefox but not in chrome. In chrome it is not even triggering. I have tested on pc. when i reduce the size of browser window for firefox, the layout is triggered. But that does not happen for chrome. Same case on mobile device too. Kindly help.