-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsslayout_task04.html
62 lines (50 loc) · 1.08 KB
/
csslayout_task04.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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Flexbox: Task 4</title>
<style>
body {
background-color: #fff;
color: #333;
font: 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
padding: 1em;
margin: 0;
}
ul {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
width: 450px;
list-style: none;
padding: 0;
margin: 0;
}
li {
flex: 1;
background-color: #4D7298;
border: 2px solid #77A6B6;
border-radius: .5em;
color: #fff;
padding: .5em;
margin: .5em;
}
</style>
</head>
<body>
<ul>
<li>Turnip</li>
<li>greens</li>
<li>yarrow</li>
<li>ricebean</li>
<li>rutabaga</li>
<li>endive</li>
<li>cauliflower</li>
<li>sea lettuce</li>
<li>kohlrabi</li>
<li>amaranth</li>
</ul>
</body>
</html>