I am trying to stetch a div background image but not keep the aspect ratio. So I want a fixed height of 270px and a width 100% of the screen. It works perfectly in chrome but not in IE or Firefox. Here is what I have now:
CSS:
#container {
background-image: url(images/blur.jpg);
background-repeat:no-repeat;
background-size:100% 270px;
width:100%;
height:270px;
margin:0px;
padding:0px;
}
HTML:
<div id="container">content</div>
I'm a little new to all this so sorry if I am asking a really simple question!
*Update: It's all working now. I'm really not sure what happened. I checked this over and over but closing everything and then opening my source code showed that it had changed the css from background size: 100% 270px; to just 100%. Absolutely bizarre! Sorry for wasting your time.