Forum Moderators: phranque

Message Too Old, No Replies

How do we center left to right in ALL browsers, even with PHP database

We need an expert!

         

SuperL

5:25 pm on Sep 14, 2004 (gmt 0)



I'm not sure which of these factors may be prohibiting us from centering our pages horizontally. Our site developer says he couldn't make it happen (but there are other "possibles" that seemed "impossible" for him). We have a site that uses a multi-lingual PHP database. It also has top and left margin drop-down links, which I'm told may be part of our problem with centering in all browsers. It currently centers in everything except for IE.

How can we make this center also in IE? Your suggestions would be greatly appreciated!

photon

5:34 pm on Sep 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, SuperL!

body
{text-align:center;
margin:0 auto;}

The text-align will (incorrectly) center all of the content in IE. The margin takes care of the browsers that get it right. :) You'll need to set widths and other styles as appropriate.

Of course, you can then arrange the rest of the elements on the page however you'd like within the centered container.

Sounds like you might need to get a new site developer.

Easy_Coder

8:07 pm on Sep 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is a -->multi-lingual PHP database?