How can I set the height of a div in IE to 1px? In firefox and opera I could simply set the style attribute to height: 1px; but this only works in those two not IE. Note there is nothing in this div.
Another thing that IE does is have about five pixels spacing in the div at the bottom after all the content, which I do not want. EDIT: I found out the case to this. I change the div to a table and it does the same thing, thus finding out that it is the images in the div not the div. How can I get rid of the unessissary space at the bottom of these images?
Any tricks on how to do this? Thanks for reading.
IE div problem.
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
.sandbag-right {
border: 0;
padding: 0;
font-size: 0;
margin: 0 0 -1px 0;
height: 2px;
float: right;
clear: right;
background: red;
}