CPSC415A
Web Programming

Day 6 Notes

CSS Positioning

Static - The Default

position: static;

Relative - Relative to Static Position

position: static;
left: 100px;
top: -100px;

Fixed - Relative to Vieport

position: fixed;
bottom: 0px;
right: 100px;

Absolute - Realitve to Nearest Non-static Ancestor or Viewport if None

position: absolute;
bottom: 0px;
right: 100px;