Initial commit
This commit is contained in:
25
HTML/html-kurs/Basics/positionierung2/positionierung2.css
Normal file
25
HTML/html-kurs/Basics/positionierung2/positionierung2.css
Normal file
@@ -0,0 +1,25 @@
|
||||
body {
|
||||
height: 10000px;
|
||||
}
|
||||
|
||||
#fixedDIV {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background-color: grey;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
#stickyDIV {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background-color: red;
|
||||
position: sticky;
|
||||
top: 20px;
|
||||
margin-top: 350px;
|
||||
}
|
||||
|
||||
span {
|
||||
position: static;
|
||||
}
|
||||
Reference in New Issue
Block a user