View Full Version : All about div aligning


benjibo
10-11-2005, 06:41 PM
dont delete this if this already here or this is unrevealant <sp?>

but, if you're stuck on div positioning: heres an explanation...

<div style="position: absolute; top: 00px; width: 00px; left: 00px; height: 00px; right: 00px;" align="left">

The "top" part is how far from the top of your screen.
The "width/height" is how long/height the div is going to be (optional)
The "left" part is how far away the text/image is away from the left side of your screen.
The "right" part is how far away from the right your image/text is going to be from.
The "align" part is where abouts it is on your screen.

I hope this may help people, please add to this thread if there is any more to this...:fish2:

Monkey Bizzle
10-11-2005, 06:44 PM
I know we're not supposed to reply to threads in the tutorials section but I wanted to point out an error...

<div style="position: absolute; top: 00px; width: 00px; left: 00px; height: 00px; right: 00px;" align="left">

Someone who doesn't know about positioning might read this and think that you position it from the left AND the right... That is incorrect... It's top OR bottom and left OR right =)

MaGiCSuN
10-11-2005, 09:18 PM
plus the div hasn't got an </div> tag

if you don't know how to do proper divs, then don't post it here :)
it's already covered on lissa's site aswell ..

I'm closing this

Love,
mirna