Initial commit
This commit is contained in:
29
HTML/html-kurs/Basics/positionierung1/positionierung1.css
Normal file
29
HTML/html-kurs/Basics/positionierung1/positionierung1.css
Normal file
@@ -0,0 +1,29 @@
|
||||
#relativesDIV {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background-color: grey;
|
||||
position: relative;
|
||||
top: 120px;
|
||||
left: 200px;
|
||||
}
|
||||
|
||||
#absoulutesDIV {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background-color: red;
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
right: 200px;
|
||||
}
|
||||
|
||||
span {
|
||||
position: relative;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
b {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
}
|
||||
19
HTML/html-kurs/Basics/positionierung1/positionierung1.html
Normal file
19
HTML/html-kurs/Basics/positionierung1/positionierung1.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Positionierung 1</title>
|
||||
<link rel="stylesheet" type="text/css" href="positionierung1.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="relativesDIV">
|
||||
<div id="absoulutesDIV"></div>
|
||||
</div>
|
||||
|
||||
<br><br><br><br><br><br><br><br>
|
||||
|
||||
<span>Relative</span> und <b>Absoulute</b> Positionierung sind voll super!
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user