forked from siriokun/css-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflex-stack.html
More file actions
48 lines (42 loc) · 1 KB
/
flex-stack.html
File metadata and controls
48 lines (42 loc) · 1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Stacking using Flex</title>
<link rel="stylesheet" href="style.css">
<style>
body {
margin: 20px;
}
.title-section {
border-bottom: 1px solid #ccc;
max-width: 500px;
margin: 40px auto;
padding-bottom: 15px;
display: flex;
align-items: flex-end;
flex-wrap: wrap;
}
.title-section>span:first-child {
flex-grow: 1;
margin-right: 20px;
}
.title-section>span:last-child {
font-size: 60%;
color: #999;
margin-top: 10px;
}
}
</style>
</head>
<body>
<h2 class="title-section"><span>Section Title</span> <span>Description of this section</span></h2>
<h2 class="title-section"><span>Section Title</span> <span>
<a href="">Tag1</a> /
<a href="">Tag2</a> /
<a href="">Tag3</a> /
<a href="">Tag4</a> /
<a href="">Tag5</a>
</span></h2>
</body>
</html>