09. Layout Properties

Image

Image 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 O’Reilly online learning.

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