The Least You Need to Know

• Use position:absolute with top, left, bottom, and/or right declarations to precisely position an element on a page.
• Use position:relative with top, left, bottom, and/or right declarations to precisely position an element relative to where the box normally would appear.
• Use z-index:# to specify stacking order—the higher the number an element has, the closer to the front it appears.
• Use float:left to move an element to the left and wrap content around its right side.
• Use float:right to move an element to the right and wrap content around its left side.

Get The Complete Idiot's Guide® To HTML5 and CSS3 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.