By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,148 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

Getting statically positioned element window offset positions (left, top)?

P: n/a
HEllo

i create an HTML image dynamically using document.createElement()

i dont explicitly define the 'style.position', but i assume its 'static' by
default.

according to CSS2 'left' & 'top' props dont apply to 'boxes' having
'position:static;'

is there really no way of getting window offset x & y for my element?
i remember IE used to have something like offsetX & offSetY of ofsetWidth &
Height ??
Pieter.

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
sorry, i forgot to look on the element properties instead of the
element.style properties ...
"Pieter Van Waeyenberge" <p@foo.com> wrote in message
news:40*********************@news.skynet.be...
HEllo

i create an HTML image dynamically using document.createElement()

i dont explicitly define the 'style.position', but i assume its 'static' by default.

according to CSS2 'left' & 'top' props dont apply to 'boxes' having
'position:static;'

is there really no way of getting window offset x & y for my element?
i remember IE used to have something like offsetX & offSetY of ofsetWidth & Height ??
Pieter.

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.