Monday, April 5, 2010

CSS: What's your position?

The position property in CSS affects the way elements are positioned on the page.
position: value;

Values:
  • Static: default positioning for all elements
  • Relative: offsets relative to the default positioning
  • Absolute: positions element based on nearest parent element or the corner of the window
  • Fixed: same as absolute except parent element is always the window
http://www.barelyfitz.com/screencast/html-training/css/positioning/ has a simple yet helpful tutorial about positioning. It has great examples for each position.

References:
http://www.cssbasics.com/css-positioning/
http://www.barelyfitz.com/screencast/html-training/css/positioning/

0 comments:

Post a Comment