...

View Full Version : centering floating div inside centered table



mboy
01-03-2006, 10:01 AM
hi
my problem is simple (maybe) - i want this page to center itself
and keep the floating div of text absolute within the table so it also
follows the centered page when browser is expanded or adjusted.
but i am not sure where to put the tags - so that it will be universal
on macs and PC.

http://zutruhuman.com/zu3/index.html

any thoughts or suggestions?

mb

_Aerospace_Eng_
01-03-2006, 10:07 AM
body {
text-align:center;
}
#layer2 { height: 600px; width: 610px; left: 0; top: 0; position: relative;
margin:auto;}
Use the above for your CSS, then you will need to move layer1 inside of your layer2 div.
You may want to run your page through the validator (http://validator.w3.org). You have some errors.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum