Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang = "de">
<head>
<title>
Aufgabe 2
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
* {
box-sizing: border-box;
padding: 0;
margin: 0;
word-wrap: break-word;
}
header, nav, article, footer {
width: 100%;
background-color: cyan;
padding: 25px;
<!DOCTYPE html>
<html lang = "de">
<head>
<title>
Aufgabe 1
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
@media only screen and (min-width: 600px) {
li {
display: inline;
}
article {
width: 60%;
float: left;
}
aside {
width: 40%;
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
header, nav, article, aside {
width: 100%;
}
header {
header {
padding: 25px;
background-color: turquoise;
}
nav {
width: 25%;
float: left;
padding: 25px;
background-color: blueviolet;
<!DOCTYPE html>
<html lang = "de">
<head>
<title>
Responsive Design
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
@keyframes drehung {
0% {transform: rotate(0deg); left: 100px; top: 50px; background-color: cyan}
25% {transform: rotate(3600deg); left: 100px; top: 50px; background-color: orchid}
50% {transform: rotate(2160deg); left: 1000px; top: 50px; background-color: firebrick}
75% {transform: rotate(1080deg); left: 1000px; top: 500px; background-color: yellowgreen}
100% {transform: rotate(360deg); left: 1000px; top: 500px; background-color: aquamarine}
}
div {
width: 150px;
div {
width: 300px;
height: 150px;
background-color: rosybrown;
position: absolute;
padding: 100px 50px 10px 10px;
top: 100px;
left: 300px;
}
div {
width: 300px;
height: 150px;
background-color: rosybrown;
position: absolute;
padding: 100px 50px 10px 10px;
top: 200px;
left: 500px;
}