faboon
11-22-2011, 05:32 PM
Hi all,
I'm working on this website - http://www.ecruprint.com - which is a custom skin for the e-commerce site Big Cartel.
Forgive the messy CSS files, I will be cleaning them up later!
I'm trying to debug for IE7, and have a weird bug where the CSS width is not being obeyed.
This is the code for one of my main divs:
#main-content {
margin:0 auto;
width:940px;
overflow:hidden;
text-align:center;
}
This results in perfect layout in Chrome, FF and Safari, but Explorer seems to ignore the width and spits it out as 537px instead!:confused:
I've been using DebugBar in Explorer to try and work out what's going on, and that's what gave me the the 537px figure. I really have no clue what's going on here, and I'd really appreciate any ideas.
Many thanks
I'm working on this website - http://www.ecruprint.com - which is a custom skin for the e-commerce site Big Cartel.
Forgive the messy CSS files, I will be cleaning them up later!
I'm trying to debug for IE7, and have a weird bug where the CSS width is not being obeyed.
This is the code for one of my main divs:
#main-content {
margin:0 auto;
width:940px;
overflow:hidden;
text-align:center;
}
This results in perfect layout in Chrome, FF and Safari, but Explorer seems to ignore the width and spits it out as 537px instead!:confused:
I've been using DebugBar in Explorer to try and work out what's going on, and that's what gave me the the 537px figure. I really have no clue what's going on here, and I'd really appreciate any ideas.
Many thanks