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?
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?
add this to the style:
and your first div in the body change to this:Code:#container { text-align:center; }
There is a lot there to clean up, both CSS and HTML but this should get you started.Code:<div id="container">
Last edited by BLiZZaRD; 01-22-2008 at 03:02 PM.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
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
Did you close your div's correctly? If you have an open one somewhere then the whole process is out of whack.
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
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>
Bookmarks