Skip to content

Instantly share code, notes, and snippets.

@rxgx
Created December 30, 2013 10:52
Show Gist options
  • Save rxgx/8180602 to your computer and use it in GitHub Desktop.
Save rxgx/8180602 to your computer and use it in GitHub Desktop.
Legacy Offset & Positioning of Two Elements
x ----
| |
| |
| |
y ---- ---- a
| |
---- b
a > x
a = y
b > x
b > y
---- a
| |
x ---- ---- b
| |
| |
| |
y ----
a < x
a < y
b = x
b > y
x ----
| |
| |
| | ---- a
y ---- | |
---- b
a > x
a < y
b > x
b > y
---- a
x ---- | |
| | ---- b
| |
| |
y ----
x ----
| | ---- a
| | | |
| | ---- b
y ----
a > x
a < y
b > x
b < y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment