View Full Version : More Div Layer Help...


Japan Queen
02-15-2003, 01:03 AM
Sometimes I really hate div layers, but they are definately a good thing. Heres the 411:

I would like to be able to have my image be 0 pixels from the top and centered. The stupid div tag won't let me do that because I can't figure it out. Right now, it is just aligning to the top AND to the left at 0 pixels. Here is what it looks like now. If anyone knows how to fix it, it would be much appreciated if you tell me! Thank you so much.

http://www.geocities.com/beachobsession/tester.html

Aina
02-15-2003, 02:08 AM
Use this:
<div align=center style="position:absolute;top:0;left:0"><img src="topimg.jpg" border="0"></div>

Japan Queen
02-15-2003, 04:57 AM
It didn't work, but thank you for trying! :D

Celeris
02-15-2003, 05:53 PM
I dunno if this will help, but let's clean up the aforementioned code to become:

<div style="position: absolute; top: 0px; left: 0px; width: WIDTH OF YOUR PICpx;" align=CENTER><img src="topimg.jpg" border="0"></div>

Whatever you see in capitals is what you should alter. Leave all of the "px" tags in there, and the ";"... If they are missing, the div won't work.