Link Details

Link 963605 thumbnail
User 1126425 avatar

By strangeloops
via tech.pro
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
  • 128
  • 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.

Voters For This Link (2)



Voters Against This Link (0)



    Java Performance Optimization
    Written by: Pierre-Hugues Charbonneau
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Node.js
    2. Debugging JavaScript
    3. OO JS
    4. JSON
    5. Ajax