stacyr Posted March 29, 2008 Share Posted March 29, 2008 I have been trying to fix this for a while now. http://quidgen.net/files/hl2.php In firefox/opera/safari the page is centered (with a "margin: auto" container). In IE its not centered. I've tried a few things. It seems related to the table. I've removed the table and it centered. I removed the <th> headers only and it centered. I commented out the entire table and it did NOT center. What is going on? Link to comment https://forums.phpfreaks.com/topic/98545-div-no-longer-centered-with-table-inside/ Share on other sites More sharing options...
stacyr Posted March 30, 2008 Author Share Posted March 30, 2008 Solved: IE was put into Quirk Mode with extra chars before the doctype tag! I didn't want that. Link to comment https://forums.phpfreaks.com/topic/98545-div-no-longer-centered-with-table-inside/#findComment-504392 Share on other sites More sharing options...
stacyr Posted March 30, 2008 Author Share Posted March 30, 2008 I was running a smarty template plugin for sorting columns which put a "page built in x seconds" and memory usage comment at the top of the document before the doctype tag. When I removed the table headers the plugin was no longer called. Link to comment https://forums.phpfreaks.com/topic/98545-div-no-longer-centered-with-table-inside/#findComment-504393 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.