positioning. |
![]() ![]() |
positioning. |
![]()
Post
#1
|
|
![]() AKA RockIt Studios ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,286 Joined: Jun 2006 Member No: 421,809 ![]() |
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;"> |
|
|
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 18,173 Joined: Mar 2005 Member No: 108,478 ![]() |
Just add a "<center>" tag above the DIV code and I believe that should work.
|
|
|
![]()
Post
#3
|
|
![]() Adobe Addict ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 1,237 Joined: Mar 2005 Member No: 113,043 ![]() |
^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. |
|
|
![]() ![]() |