Jump to content

ir.net

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by ir.net

  1. It's supposed that this page should show position of a child element relatively to its parent.

    http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_css_position2

     

    The challenge is it shows position relatively to positioned parent or body as I suppose.

    I mean that currently "Position of this paragraph (relative to its parent element) is 151 top and 159 left."

    instead of "... 100 top and 100 left."

     

    May be paragraph's text "(relative to its parent element)" should be changed or 'position:absolute' should be added to parent's style to avoid confusion.

    <div style="border:1px solid black;padding:100px;margin:50px;position:absolute;">

×
×
  • Create New...