Skip to content

Instantly share code, notes, and snippets.

@Chun-Yang
Created February 4, 2015 03:12
Show Gist options
  • Select an option

  • Save Chun-Yang/c48143a096956be37e4f to your computer and use it in GitHub Desktop.

Select an option

Save Chun-Yang/c48143a096956be37e4f to your computer and use it in GitHub Desktop.
1. Position does not cascade
2. Static:
- Default
- Does not have a z-index
3. Relative:
- Relative to default(static)
- Has a z-index value
- Limit scope of absolutely positioned child element
4. Absolute:
- Relative to a parent(which is relative or absolute positioned)
- Does not interact with other elements
5. Fixed:
- Relative to bowser window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment