PDA

View Full Version : Centre page issues


TheNostradamus
10-25-2007, 04:51 PM
Hi I have leard that I can centre the page by clicking on the body tag and align centre. However this does not seem to work with the "Draw Layers" that I have on my page,

What am i doing wrong??

Thanks

fwr1000
10-25-2007, 05:33 PM
Not sure about the "Draw Layers" but generally you need to have a wrapper div around all of your content. Check out this DW Club tut

http://www.dreamweaverclub.com/css-center-content.php

m1a2x3x7
10-25-2007, 06:14 PM
You cant do it with "draw layers" because they are absolute position. Create a div tag without absolute position and set your margins to auto. It will then center.

Atomico™
10-25-2007, 10:11 PM
like this

.wrapper {
height: 650px;
width: 920px;
margin: auto;
background-image: url();

}

domedia
10-26-2007, 12:51 PM
What atomico wrote +
body {text-align: center}
.wrapper {text-align: left;}