Cepola Posted December 25, 2007 Share Posted December 25, 2007 Hi everyone! I suppose this is my first post here, so please don't blame me if the issue has already been discussed... I've started developing pages recently and when i wanted the page layout center-aligned, i usually did it with css: body{text-align:center} Well, i've figured out it doesn't work with firefox. Furthermore, I' tried solving it with 50% tables, though i don't think it's the best solution. Can sb help me? (I know you do) Link to comment Share on other sites More sharing options...
Ingolme Posted December 25, 2007 Share Posted December 25, 2007 What you need to do is put everything inside the body within a <div> tag, like this: <body><div>...some content...</div></body> And then you use this CSS: body {text-align: center;}body>div {margin: 0 auto;} Link to comment Share on other sites More sharing options...
Cepola Posted December 26, 2007 Author Share Posted December 26, 2007 Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.