PDA

View Full Version : centerising site content?



Ambrosia
February 25th, 2003, 03:38 PM
What do I need to add into my code so that every time an user resizes his/her browser window, the image or the contens would always stay centericed?
Check this site to see what I mean:

http://www.samurina.com

I have tried the following code (with < and > marks) but it only works if I don`t use any layers in my page.


body bgcolor="#FFFFFF"
div align="center"
My content
/div
/body

Lacuna
February 26th, 2003, 09:17 AM
i think it should work if you just stick the whole thing in one large table with that table aligned to center... that way i believe your layers should always assume the top-left corner is its 0,0 and go from there.

So...





...ALL your body content here...





i think i actually ran into this problem with one of my older pages so if this doesn't work just let me know and i'll go check it out. (It's way back in the archives so i'd prefer to take an educated guess first ... lol)

:love: ~ Seretha

Dave
February 26th, 2003, 09:22 AM
You can also create a table that is 100% in width and in height!



:beam:

Lacuna
February 26th, 2003, 09:36 AM
yea i wasn't too sure if i had put that in my previous table...it makes sense tho seeing as it would take the up the full space available..

ahmed
February 26th, 2003, 10:35 AM
this question's been asked a lot.. do your self a favour and search the next time :)

Ambrosia
February 26th, 2003, 04:00 PM
Thank you all for help! I don`t have much experience about tables, but I guess I`ll have to learn. I tested it and it worked fine.
(-: