I have a problem with the margin in IE.
I have an image placed in div. I made all the margins set to 0.
But still the top margin is showing a little. I don’t want to set the
margin-top to a negative value. This happens only in Ie because in firefox
its positioned perfectly.
Do you have workaround for this?
Here’s my attritbutes to div:
.placeImage {
visibility:visible;
overflow:auto;
height:400px;
background-image: url(image.jpg);
background-repeat: no-repeat ;
background-position:left;
}
I read that I can put margin:0 in the body tag so:
<body style="margin-top:0; margin-left:0;">
The left margin is okay but the top still shows a little space at the back..
Help..
Try putting:
EDIT
Feel free to look at this jsFiddle here demonstrating this:
http://jsfiddle.net/Lrume/2/