Previous Message
Next Message

div horizontal centering in Moz

Sent by Kristina Floyd on 15 September 2005 15:03

shlomi asaf wrote:

 > here is the sketch of the site

Try adding a containing div around everything


<div id="container">
   [rest of code here]

body {
  text-align: center;

#container {
   margin: 0 auto;

the above should center everything in Moz...

(disclaimer - i haven't tested this just off the top of my head....)

I would recomend you find some tutorials about using pure css and 
dropping the tables for formatting.

cheers for now

css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Possibly related: