PDA

Click to See Complete Forum and Search --> : Quick <div> question


Jackimalyn
11-14-2006, 03:23 PM
OK, i feel like this is such an ametuer question but im at a loss, this is my first all css layout site.....

I have my pages made with the whole layout made using <div> tags. How do I center the entire page in a browser?? When I do

<div align="center"> That centers text... anyone know?

Andi Creffield
11-14-2006, 03:27 PM
Try this:

http://www.simplebits.com/notebook/2004/09/08/centering.html

Andi Creffield
11-14-2006, 03:30 PM
You can also do it using:

div#outer { width: 90%; margin: 10px auto; }

Jackimalyn
11-14-2006, 03:46 PM
YES! Thank you so much! so simple.

Andi Creffield
11-14-2006, 03:48 PM
so simple.

It is, so why does it drive you so damn nuts? :confused: