[thelist] CSS centering in IE

Gary McPherson lists at ingenyus.net
Wed Jan 28 15:48:05 CST 2004


Rob Day wrote:

>Hi,
>I'm trying to create a page that I thought would be really easy -- a single fixed-width column, with flexible height (dependent upon amount of content), centered on the page. I wrote a really simple page that I've tested it on Mozilla 1.4, Opera 7.23, Firebird 0.7, and IE 6 all on Windows 2000. It works just fine in everything except IE. In IE the column is all the way to the left. I found a page that does what I want without tables and works in IE (http://www.pfundernewmedia.com/shawn/), so I looked at the CSS, but I can't see what they're doing differently. In the CSS comments (http://www.pfundernewmedia.com/shawn/styles-site.css) there's a mention of a CSS hack, but I can't figure out what's going on. I also tried doing what this site suggested (http://www.quirksmode.org/css/centering.html), but I'm really trying to avoid using a table. Any pointers would be greatly appreciated. Thanks.
>-Rob
>  
>
Tested in Win2000/IE6 and WinXP/IE6 - displays properly in both. Have 
you double-checked that the CSS has been refreshed with your latest 
changes? Try adding something obvious to your stylesheet and see if it 
shows up as expected.

Hope that helps,

Gary




More information about the thelist mailing list