Link Details

Link 963605 thumbnail
User 1126425 avatar

By strangeloops
Submitted: May 02 2013 / 14:24

When building web applications or interactive widgets, it's often necessary to position an element relative to something else. As a few examples, an autocomplete suggestion list may appear below the text field the user is typing into, a dialog may appear centered within the window, and a tooltip may appear offset from the cursor. All of these scenarios seem simple because we naturally think about layout in terms of objects and their relative position to each other. However, when you get down to the actual code involved in positioning elements, things get hairy pretty quickly.
  • 2
  • 0
  • 139
  • 74

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Upvoters (2)

Downvoters (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java