RosalindD
12-22-2002, 10:46 AM
Alright, here's the last problem I have- I promise:
Use the 'screen' object to get the size of the user's screen, then use this information to place an image (using dynamic positioning, such as 'absolute' or 'resolute') in the middle of the page.
Now, what I did was to put down in the image style "position: absolute; left: 50%; top: 50%" That puts the image in the center but I still feel I'm doing something wrong. I didn't use the 'screen' object and for some reason the picture isn't in the exact middle. Its off a little farther to the right. I'm in dire need of assistance! Please! It just has to be a small little script. Nothing big. Beginning level. Nothing fancy.
Admin note: Please read our posting guidelines regarding how to select an appropriate subject for your thread: http://www.codingforums.com/postguide.htm
Use the 'screen' object to get the size of the user's screen, then use this information to place an image (using dynamic positioning, such as 'absolute' or 'resolute') in the middle of the page.
Now, what I did was to put down in the image style "position: absolute; left: 50%; top: 50%" That puts the image in the center but I still feel I'm doing something wrong. I didn't use the 'screen' object and for some reason the picture isn't in the exact middle. Its off a little farther to the right. I'm in dire need of assistance! Please! It just has to be a small little script. Nothing big. Beginning level. Nothing fancy.
Admin note: Please read our posting guidelines regarding how to select an appropriate subject for your thread: http://www.codingforums.com/postguide.htm