O'Reilly logo

Foundations of Web Design: Introduction to HTML & CSS by Thomas Michaud

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required