12 CSS Positioning
You’re now familiar with the box model of CSS. However, before you can start creating layouts with CSS, you’re still missing one small important building block. The question is how you can position HTML elements or the boxes with CSS.
Until now, you’ve been used to HTML elements being positioned and displayed in the flow of the HTML document. The elements are displayed one after the other in the order in which they were noted in the HTML code. However, you aren’t limited to such static positioning and can manipulate this using CSS.
There are several ways to perform positioning tasks with CSS. Here’s what you’ll learn in this chapter:
-
Positioning modelPositioning HTML elements using the CSS feature position.
-
Stacking model ...
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