saavan
07-16-2004, 03:28 PM
is there any way, any way at all how to center div layers layout please can you let me know ive been racking my brain for ages and searched like over 100 sites and if there is a site that could help me could you please link me up, thanks alot in advanced
MaGiCSuN
07-16-2004, 03:30 PM
how do you mean center, like in center in the screen no matter what resolution the visitor is using?
for normal center you just use this:
<div align="center">
Love,
Mirna
saavan
07-16-2004, 03:45 PM
i mean to center the whole layout not just one bit
thanks
MaGiCSuN
07-16-2004, 03:55 PM
yeah but to center it in every resolution? because you can center something in 800x600 with absolute positioning but that doesn't look in the center with 1024x768
Love,
Mirna
saavan
07-16-2004, 04:02 PM
so is there no way i can center a whole div layers layout and it will look good in all screen resolutions?, if not is there a way to add a little bit of table coding to put it in the middle?
ham_let
07-16-2004, 04:03 PM
yup!
<body>
<center>
<table><tr><td>
layout here
</td></tr></table>
</center>
</body>
MaGiCSuN
07-16-2004, 04:04 PM
you can use a table, but then all the divs inside it shouldn't have any absolute positioning coding in them because then it doesn't work.
<table border="0" cellspacing="0" cellpadding="0">
<tr><td valign="middle" align="center">
your content here
</td></tr></table>
Love,
Mirna
saavan
07-16-2004, 04:08 PM
okay thanks very much, but then what do i put in instead of the absolute possitioning code?
bluecandy
07-16-2004, 09:16 PM
u can center with divs and absolute positioning.. a few people have asked recently.. here's the link to a thread that describes it:
http://www.lissaexplains.com/forum/showthread.php?t=58401