Help - Search - Members - Calendar
Full Version: positioning.
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
Smarmosaur
i'm working on a halloween layout (which i'd obviously like done and submitted by halloween) and I have a DIV at the top to position it cause of that ugly ad space. is there any way i can automatically position it in the center without messing up the distance from the top, no matter what the screen size is?
thanks in advance. code:

CODE
<div style="left:10; top:10; position=absolute;">

tokyo-rose
Just add a "<center>" tag above the DIV code and I believe that should work.
digitalfragrance
^It's a little more complicated than that. Using the center tag only will make it work in IE, but not FF.

I've found that if you surround your DIV like this with tables, it works in all broswers:

CODE
<center><table><div style="attributes here;"></div></table></center>


... don't ask me why, but it's the only way to get it compatible. Of course, that's an example for website coding. Since that last div is open, I'd assume only the first half of that coding is needed.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.