Default Page Layout
You may have noticed that elements on a web page naturally stack from left to right and top to bottom. In this lesson, we will learn how to position elements, control their order, and other related attributes.
This is an important part of CSS that allows us to place elements in any desired position, according to your or the designer's preferences!
Notice that we have added a rule in the style.css
file that sets the default padding and margin to 0 pixels. This is often done because each browser has different default padding and margin settings for elements, and it would prevent us from creating a consistent design.
Instructions
When you're ready, move on to the next exercise!
Start programming for free
1/10