P
Pieter Van Waeyenberge
Hello
consider:
<html>
<head>
<style type="text/css">
body{margin:50px;}
</style>
....
<body> ...
When i get a handle for the body (using DOM: doc.getElsByTagName ...
item(0))
and i try to read style.margin from the body, i get an empty string
However, when i specify the style info directly in the BODY element <body
style="margin:50px;"> , and then i read out style.margin ... i get my value
50px
? i dont know how the parsers work but after specifying style info whichever
way, is should be available in the object model shouldnt it???
Aparently both ie and ns behave the same on this ...
Ultimately i want to position elements absolutely but 'offsetLeft/Top'
doesnt relate to 'margin'
PIeter.
consider:
<html>
<head>
<style type="text/css">
body{margin:50px;}
</style>
....
<body> ...
When i get a handle for the body (using DOM: doc.getElsByTagName ...
item(0))
and i try to read style.margin from the body, i get an empty string
However, when i specify the style info directly in the BODY element <body
style="margin:50px;"> , and then i read out style.margin ... i get my value
50px
? i dont know how the parsers work but after specifying style info whichever
way, is should be available in the object model shouldnt it???
Aparently both ie and ns behave the same on this ...
Ultimately i want to position elements absolutely but 'offsetLeft/Top'
doesnt relate to 'margin'
PIeter.