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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pieter Van Waeyenberge

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

    HEllo

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

    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:stati c;'

    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.



  • Pieter Van Waeyenberge

    #2
    Re: Getting statically positioned element window offset positions (left, top)?

    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:40277331$0 $319$ba620e4c@n ews.skynet.be.. .[color=blue]
    > HEllo
    >
    > i create an HTML image dynamically using document.create Element()
    >
    > i dont explicitly define the 'style.position ', but i assume its 'static'[/color]
    by[color=blue]
    > default.
    >
    > according to CSS2 'left' & 'top' props dont apply to 'boxes' having
    > 'position:stati c;'
    >
    > 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[/color]
    &[color=blue]
    > Height ??
    >
    >
    > Pieter.
    >
    >
    >[/color]


    Comment

    Working...