Spielen und Ausprobieren mit Responsive Design Teil 2
This commit is contained in:
1 parent
b430cb4d39
commit
38f2c699b2
2 files changed
+44
-3
No files matched your search
@@ -6,6 +6,21 @@ body {
|
||||
}
|
||||
p.image {
|
||||
text-align: center;
|
||||
}
|
||||
.container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
background-color: dodgerblue;
|
||||
}
|
||||
.container div {
|
||||
background-color:#f1f1f1;
|
||||
margin: 10px;
|
||||
padding: 20px;
|
||||
font-size: 30px;
|
||||
color: black;
|
||||
flex: 1 1 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +30,9 @@ p.image {
|
||||
color: white;
|
||||
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
|
||||
}
|
||||
.container div {
|
||||
flex: 1 1 calc(50% - 40px);
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
body {
|
||||
@@ -31,5 +49,9 @@ p.image {
|
||||
column-rule: 5px dotted black;
|
||||
outline-style: dotted;
|
||||
}
|
||||
.container div {
|
||||
flex: 1 1 calc(25% - 20px);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user