Skip to content

Commit d9adaba

Browse files
committed
HTML, CSS だけで1行の均等割付、両端揃え
1 parent 6c83736 commit d9adaba

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Diff for: justify/index.html

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!doctype html>
2+
<html lang="ja">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>justify</title>
7+
8+
<style>
9+
.center {
10+
width: 50%;
11+
margin: auto;
12+
}
13+
14+
.justify {
15+
display: flex;
16+
justify-content: space-between;
17+
}
18+
19+
.text-area {
20+
border: 1px solid #aaa;
21+
margin: 50px;
22+
}
23+
</style>
24+
25+
</head>
26+
27+
<body>
28+
<div class="center">
29+
<div class="justify text-area">
30+
<span></span>
31+
<span></span>
32+
<span></span>
33+
<span></span>
34+
</div>
35+
36+
<div class="justify text-area">
37+
<span></span>
38+
<span></span>
39+
<span></span>
40+
<span></span>
41+
<span></span>
42+
</div>
43+
</div>
44+
</body>
45+
46+
</html>

0 commit comments

Comments
 (0)