Lam <la*****************@nospam.org> writes:
i have a problem with position of image
i use this code in a "alert" function :
document.getElementById("lienx").offsetLeft + " , " + document.getElementById("lienx").offsetTop
Look correct
with :
document.write("<style>.lienmenu { font-family: arial; font-size:1px; position: absolute; width:200px;visibility:hidden; z-index:2; background-color:red;}</style>");
Why use JS to write your style tag?
The type attribute is required on style tags:
<style type="text/css">
Font size of 1 pixel? Won't work in my browser, I have a minimum font size of
6px.
i have 2 differents results with IE and mozilla
Mozilla says 149,16 , IE says 162 ,0
any idea to help me ?
You forgot to say what the problem was. You just stated what you did
and what happens. A useful bug report needs a third thing: What you
expected/wanted to happen. Without that, it's impossible to fix the
problem, because we don't know what fixed would be.
Do you want them to say the same? Or do you want the element to be
positioned the same? (Then position it with the top/left properties!)
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'