...

View Full Version : DIV Position



jmarcel
03-10-2004, 06:29 PM
Can I get the layer top and left positions without put into the tag?
Is there anyway to calculate it?

Tks
Marcel

JAVAEOC
03-11-2004, 12:21 AM
is this what u are looking for?


in the head:
<style>
div{
position: absolute;
top: 30;
left: 44;
}
</style>

then in the body:

<div>someting 44 px form the left :D</div>


and if you want the to find the position with js then use .offsetTop or .offsetLeft

:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum