-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAufgabe 3.1 desktop.html
86 lines (86 loc) · 2.38 KB
/
Aufgabe 3.1 desktop.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<html>
<head>
<style>
header{
display: flex;
height: 40px;
background-color: red;
}
#main{
display: flex;
flex-direction: row;
margin-top: 5px;
height: 100%;
}
#links{
background-color: green;
width: 20%;
}
#mitte{
background-color: blue;
width: 60%;
margin-right: 5px;
margin-left: 5px;
}
#rechts{
background-color: hotpink;
width: 20%;
}
@media (max-width: 600px){
#main{
display: flex;
flex-direction: column;
margin-top: 5px;
}
#links{
background-color: green;
width: 100%;
height: 100px;
}
#mitte{
background-color: blue;
width: 100%;
height: 100px;
margin-left: 0px;
margin-top: 5px;
}
#rechts{
background-color: hotpink;
height: 100px;
margin-top: 5px;
}
}
@media (max-width: 800px){
#main{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 5px;
height: 100%;
}
#links{
background-color: green;
width: 20%;
}
#mitte{
background-color: blue;
margin-left: 0px;
width: 78%;
}
#rechts{
background-color: hotpink;
width: 100%;
margin-top: 5px;
}
}
</style>
</head>
<body>
<header></header>
<div id="main">
<div id="links">links</div>
<div id="mitte">mitte</div>
<div id="rechts">rechts</div>
</div>
</body>
</html>