Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
.test1 {
|
||||
display: block;
|
||||
background-color: red;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.test2 {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
background-color: #0F0;
|
||||
margin-bottom: 20px;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.test3 {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
background-color: black;
|
||||
margin-bottom: 20px;
|
||||
color: white;
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Display Eigenschaft</title>
|
||||
<link rel="stylesheet" type="text/css" href="displayEigenschaft.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span class="test1">Wir stellen jetzt diese span </span>
|
||||
<span class="test1">statt als Inline Element als Block Element dar</span>
|
||||
|
||||
<div class="test2">Text!</div>
|
||||
<div class="test2">Text!</div>
|
||||
|
||||
<div class="test3">Text!</div>
|
||||
<div class="test3">Text!</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user