This document discusses CSS layout properties including display, box model, positioning, floats, and tables. It covers:
- Common display property values like block, inline, and inline-block and how they affect layout.
- The box model including content-box, padding-box, border-box, and how they treat width and height.
- Float positioning and how it removes elements from the normal flow, plus clearfix techniques.
- Positioning values like static, relative, absolute, and fixed and how they position elements.
- Other properties like overflow, z-index, and negative z-index that control layout stacking.
- Using CSS to structure tables and basic table layout
2. Display property
Block
Inline
Inline-Block
Combined style like inline element, but we can set width, height.
Others (list-item, table,inline-table,table-row,table-cell, none)
3. Display property
block
Has width( or take all parent width), height (or stretch by
content), always start at new line.
Inline
Go one by one, width always stretch by content, height = line-
height property