This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:web_development:layout:position [2021/12/13 05:14] mag [Web Development Lesson 3 - Layout] |
en:web_development:layout:position [2023/08/16 09:33] (current) |
||
---|---|---|---|
Line 96: | Line 96: | ||
==== Fixed Positioning ==== | ==== Fixed Positioning ==== | ||
- | * There' | + | * Let' |
+ | < | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | </ | ||
+ | * Now let's make it look like it contains | ||
+ | < | ||
+ | background-color: | ||
+ | border: | ||
+ | height: 400px; | ||
+ | }</ | ||
+ | * Notice that the < | ||
+ | * | ||
< | < | ||
background-color: | background-color: | ||
Line 119: | Line 132: | ||
==== Overflow ==== | ==== Overflow ==== | ||
- | * There' | + | * There' |
- | < | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | <div class=" | + | |
- | </ | + | |
- | * Now let's make it look like it contains a lot of information. Add the following to you CSS code. | + | |
- | < | + | |
- | background-color: | + | |
- | border: | + | |
- | height: 400px; | + | |
- | }</ | + | |
* Scroll the page and see that our orange Content section overflows < | * Scroll the page and see that our orange Content section overflows < | ||
* When you're ready, let's add a scroll bar to < | * When you're ready, let's add a scroll bar to < |