Previous Message
Next Message

div horizontal centering in Moz

Sent by Kristina Floyd on 15 September 2005 14:02


shlomi asaf wrote:

 > http://www.dogma.co.il/shlomi/Css/
 >
 > here is the sketch of the site
 > http://www.dogma.co.il/shlomi/Css/images/migvan.gif


Try adding a containing div around everything

eg;

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

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]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: