-
Notifications
You must be signed in to change notification settings - Fork 843
/
Copy pathbreadcrumb-navigation.html
80 lines (67 loc) · 1.73 KB
/
breadcrumb-navigation.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CSS Cookbook: Breadcrumb Navigation</title>
<link rel="stylesheet" href="styles.css">
<style>
.breadcrumb ul {
list-style: none;
margin: 0;
padding: 0;
}
.breadcrumb a,
.breadcrumb span {
padding: .5em 1em;
}
</style>
<style class="editable">
.breadcrumb ul {
display: flex;
}
.breadcrumb li::before {
content: "→";
}
.breadcrumb li:first-child::before {
content: "";
}
</style>
</head>
<body>
<section class="preview">
<nav aria-label="Breadcrumb" class="breadcrumb">
<ul>
<li><a href="">Home</a></li>
<li><a href="">Category</a></li>
<li><a href="">Sub-Category</a></li>
<li><span aria-current="page">Product</span></li>
</ul>
</nav>
</section>
<textarea class="playable playable-css" style="height: 210px;">
.breadcrumb ul {
display: flex;
}
.breadcrumb li::before {
content: "→";
}
.breadcrumb li:first-child::before {
content: "";
}
</textarea>
<textarea class="playable playable-html" style="height: 170px;">
<nav aria-label="Breadcrumb" class="breadcrumb">
<ul>
<li><a href="">Home</a></li>
<li><a href="">Category</a></li>
<li><a href="">Sub-Category</a></li>
<li><span aria-current="page">Product</span></li>
</ul>
</nav>
</textarea>
<div class="playable-buttons">
<input id="reset" type="button" value="Reset">
</div>
</body>
<script src="playable.js"></script>
</html>