Forums

This topic is locked

how to centre a page. help!!

Posted 31 Aug 2007 00:32:05
1
has voted
31 Aug 2007 00:32:05 ignacio jimenex posted:
Hi everyone.

I have just designed a new website using dreamweaver. Now I want the layers, images etc....to be centered all the time. this is what I am trying to re create.

www.annadebenedictis.co.uk

I am very new with dreamweaver. can you please help me??? how do I center a page so that it resizes and it stays in the center???

thank you

Replies

Replied 03 Sep 2007 14:57:39
03 Sep 2007 14:57:39 Kristian Mandik replied:
Hi,
you should use CSS for your body:
HTML:
<div id="ToCenter ">
// your code here
</div>

CSS:
#ToCenter {
width: 865px;
margin-top: 0px;
margin-bottom: 2em;
margin-left: auto;
margin-right: auto;
padding: 0em;
text-align: left;
}


Reply to this topic