ATM Posted July 25, 2007 Share Posted July 25, 2007 Hey,This css is not working in IEI'm trying to center align a div on the page the css is div.page {background-color:#FFFFFF;border-color:#DDDDDD;border-style:solid;border-width:1px;height:auto;margin-left:auto;margin-right:auto;width:700px;} This div is directly inside the body.The url is http://development.rymax.co.uk/eacb/products.xmlandhttp://development.rymax.co.uk/eacb/products.xslThank you, Link to comment Share on other sites More sharing options...
justsomeguy Posted July 25, 2007 Share Posted July 25, 2007 This css is not working in IEI don't use XML or XSL for web pages, but I do know that without a doctype IE will not use auto margins. Link to comment Share on other sites More sharing options...
S@m Posted July 25, 2007 Share Posted July 25, 2007 mydiv {margin:0 auto} Link to comment Share on other sites More sharing options...
ATM Posted July 26, 2007 Author Share Posted July 26, 2007 Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.