Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IE7 problem Re: IE7 problem

#46778
Chris Coyier
Keymaster

Instead of this code:

Code:
#results ul {
margin-bottom:20px;
margin-left:auto;
margin-right:auto;
}

I’d try setting a static width and floating:

Code:
#results ul {
width: 200px;
float: left;
}

I think IE7 is having a hard time figuring out what to do without a width and those auto margins.