Key Points
To create a division, surround a section of a page with a <div> tag.
Each division tag has an
idargument that is unique within that document. Multiple documents can have the same division names, though, and in fact, this is encouraged so that one external style sheet can format multiple documents.One way to position a division is with a
floatargument. For example, to place a division at the left (for use as a navigation bar), usefloat: left.Another way to position a division is with a
positionargument. The valid values areabsolute,relative, andfixed. (Internet Explorer does not support thefixedvalue.) When you use thepositionargument, you must also use atop,bottom,left, and/orrightargument to specify the numeric value ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access