PDA

View Full Version : AP DIV centering


designer_282
02-24-2011, 09:39 PM
Hello,

I am currently taking a web design class and was wondering how to center an AP DIV in Dreamweaver CS5 so that it will be in the center (or at least close to the center) of every browser when viewers look at the website.

I asked my teacher and he said that I need to center the AP DIV vertically and horizontally, and that I needed to code it so that the browser will resize the AP DIV so it is in the center of the browser.

I know how to position it horizontally and vertically, but it still didn't do anything. So can anyone help me figure out how to do this? Is there any easier way to do this?

DWcourse
02-24-2011, 11:33 PM
Why are you using an AP div?

Chapo
02-26-2011, 09:09 PM
DWcourse, isnt a AP Div the correct way of doing a centered site as a wrap ?

arne
02-26-2011, 09:24 PM
Use Div Tag and center it with CSS

Chapo
02-26-2011, 09:34 PM
Ive always done with a AP Div as a wrap around the site. How exactly i do it with Div Tag ?

DWcourse
02-26-2011, 10:15 PM
Wrap a div around the whole layout, give it a width and set the left and right margins to auto.