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;
|
||||
}
|
||||
16
HTML/html-kurs/Basics/positionierung2/positionierung2.html
Normal file
16
HTML/html-kurs/Basics/positionierung2/positionierung2.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Positionierung 2</title>
|
||||
<link rel="stylesheet" type="text/css" href="positionierung2.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span>Dies ist static Text</span>
|
||||
|
||||
<div id="fixedDIV"></div>
|
||||
<div id="stickyDIV"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user