img {
width: 100%;
}
TA-dah!!:)
Demo: http://jsfiddle.net/bqbGY/
EDIT:
div {
left: 0px;
margin: 15px;
position: absolute;
}
img {
position: relative;
width: 100%;
}
If the margin property on the div is x pixels. Obviously, this means that you are tricking you into a div. For instance:
<div>
<img src="" />
</div>
Edit again: just a note, instead of using a property marginyou can use separate properties margin-leftand margin-right. :)
Kayla source
share