My div is sinking in IE
April 27, 2007 9:19 AM
Subscribe
CSS: This should be simple, but I, the super-novice, can't find the answer. I need to figure out how to get my float:right column to sit next to my float:left column, instead of it sitting to the right, but below the left... in IE of course.
I "designed" my little site using Firefox to view it throughout the process. I didn't realize that IE doesn't deal with floats the same way... until I was finished. But I think my layout is pretty simple and I'm hoping the solution is too.
I have a wrapper div with two columns inside it... that's it. In Firefox it's nice and pretty and works as logically as my code assumes. In IE, the right column floats to the right within the wrapper div, but it sits below the bottom of the left column.
Isn't there some simple workaround for IE to pop that right column back up where it's supposed to be? I have done quite a few searches on the topic and found all sorts of stuff, which I try to apply, but nothing seems to do it.
posted by Witty to computers & internet (26 comments total)
4 users marked this as a favorite
body {
background-color: #666666;
background-image: url(bg.gif);
background-attachment: fixed;
background-repeat: repeat-y;
margin: 0px;
padding: 0px;
min-width: 800px;
}
#wrapper {
background-image: url(newlogo.gif);
background-attachment: fixed;
background-repeat: no-repeat;
background-color: transparent;
position: absolute;
margin: 0px auto;
width: 800px;
}
#content {
background-color: #666666;
display: inline; /* fixes part of the ugliness in IE */
float:left;
width: 635px;
min-height: 535px;
margin: 0px 0px 0px 53px;
}
#thumbs {
background-color: #666666;
float: right;
width: 112px;
margin: 60px 0px 0px 0px;
}
posted by Witty at 9:21 AM on April 27, 2007