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 [2022/03/17 15:19] mag [Fixed Positioning] |
en:web_development:layout:position [2023/08/16 09:33] (current) |
||
---|---|---|---|
Line 96: | Line 96: | ||
==== Fixed Positioning ==== | ==== Fixed Positioning ==== | ||
- | * There' | + | * Let' |
- | * First, let's simulate scrollable | + | < |
- | < | + | <div class=" |
- | background-color: | + | <div class=" |
- | border: | + | <div class=" |
- | | + | </ |
- | top: 100px; | + | * Now let's make it look like it contains a lot of information. Add the following |
- | | + | < |
- | left: 16%; | + | background-color: |
- | right: 0px; | + | border:orangered |
+ | height: | ||
}</ | }</ | ||
* Notice that the < | * Notice that the < | ||
Line 131: | 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 < |