View Full Version : Problems with DIV layers
urjabay
01-21-2008, 06:23 PM
hi guys
i sliced this layout in photoshop as DIV layers;
How can i center the DIV Layers so that when u open it in the browser the layout appears in the center of the page
here's the link: http://creativelv.net/facia/gallery/
Can u please help?
BLiZZaRD
01-21-2008, 07:55 PM
add this to the style:
#container {
text-align:center;
}
and your first div in the body change to this:
<div id="container">
There is a lot there to clean up, both CSS and HTML but this should get you started.
urjabay
01-21-2008, 08:27 PM
I Tried to add it but it didn't work, it just broke the layers apart one all the way to the right and the other at the bottom
BLiZZaRD
01-22-2008, 03:01 PM
Did you close your div's correctly? If you have an open one somewhere then the whole process is out of whack.
howellsgs
01-23-2008, 02:58 AM
if you're still having problems with centering div content -
I tend to do this outa habit cause the flow is easier for me to visualize...
<style> .parentContainer{ margin: auto;} </style>
<div class='parentContainer'>
<div class='child'>
</div>
</div>
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.