PDA

View Full Version : Creating a Centered page?


Jeffrey06
01-15-2009, 12:15 AM
I'm looking into templates and such, and I see most are centered with in the webpage not taking up everything? How can I do this, I would like for mine to be like the picture attached.

Thanks

edbr
01-15-2009, 12:22 AM
search the forum this is a common request there is a tutorial i think even.
the simple answer is enclose all content in a wrapper style it to a percentage and make margins auto

coloeagle
01-15-2009, 12:29 AM
Like Ed mentioned here is the tutorial http://www.dreamweaverclub.com/css-center-content.php (http://www.dreamweaverclub.com/forum/../css-center-content.php)

In simple the css required would be something like;

Fixed width;
#wrapper {
width:???px;
text-align:center;
margin:0 auto;
}

Fluid;
#wrapper {
width:??%;
text-align:center;
margin:0 auto;
}

Jeffrey06
01-15-2009, 06:09 PM
Stupid Question:

How can I expand the wrapper down to working inside it with out putting a bunch of spaces?

coloeagle
01-15-2009, 06:26 PM
Not understanding what you are asking.

Jeffrey06
01-15-2009, 06:51 PM
Not understanding what you are asking.

When I paste code in DW. I give's me a box the size of a area that you would type a sentence, I want to expand it down, where I can put content inside the box.

coloeagle
01-15-2009, 06:55 PM
Without giving the div a height, it will automatically expand downward containing everything you place inside it.