PDA

View Full Version : How can I get div centered and 25% down?


AnotherMe
12-03-2012, 12:43 AM
Hello everyone.
This is my first time posting here. I need my div container (with the other divs inside of it), to be centered and down around 25%. I am doing something wrong. Can anyone give me some direction?
Thanks
The Web Page (http://www.mjwarchitect.com/mjwtest1/)

edbr
12-03-2012, 01:14 AM
use margins must be position relative with margin left auto margin right auto and margin top as you want, div container will need a size to centre

AnotherMe
12-03-2012, 12:53 PM
use margins must be position relative with margin left auto margin right auto and margin top as you want, div container will need a size to centre

Thanks. I tried it but it doesn't work. I must be doing it wrong. I am doing it from within Dreamweaver CS5.5. Does it matter if I make the div container relative, static, fixed or absolute? Do the nested divs inside the container div get in the way of the container div's location?

domedia
12-03-2012, 04:52 PM
Does it matter if I make the div container relative, static, fixed or absolute? Yes it does matter. Don't set any of them. The POSITION property in CSS is not needed to center a DIV.