09. Layout Properties
Chapter Code
THE CODE EXAMPLES FOR THIS CHAPTER CAN BE DOWNLOADED FROM THE WEBSITE (HTTP://FOUNDATIONSOFWEBDESIGN.COM).
To control the position, behavior, and visibility of the document’s box elements, you’ll use the float
, position
, and display
properties.
Box Element Review
Remember, CSS sees each HTML element as a box. These boxes will either be block-level boxes or inline boxes.
Block Elements
Block-level elements are those elements of an HTML document that are formatted visually as blocks (e.g., <h1></h1>
, <div></div> ...
Get Foundations of Web Design: Introduction to HTML & CSS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.