Skip to content

Commit 647be04

Browse files
committed
Create inline-block-nav.html
1 parent a500902 commit 647be04

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Box Model: Inline block for navigation items</title>
6+
<link rel="stylesheet" href="../styles.css" />
7+
<style>
8+
ul {
9+
display: flex;
10+
list-style: none;
11+
margin: 0;
12+
padding: 0;
13+
border:1px solid #000;
14+
}
15+
16+
li {
17+
margin: 5px;
18+
}
19+
</style>
20+
21+
<style class="editable">
22+
.links-list a {
23+
background-color: rgb(179,57,81);
24+
color: #fff;
25+
padding: 1em 2em;
26+
}
27+
28+
.links-list a:hover {
29+
background-color: rgb(66, 28, 40);
30+
color: #fff;
31+
}
32+
33+
</style>
34+
</head>
35+
36+
<body>
37+
<section class="preview">
38+
<nav>
39+
<ul class="links-list">
40+
<li><a href="">Link one</a></li>
41+
<li><a href="">Link two</a></li>
42+
<li><a href="">Link three</a></li>
43+
</ul>
44+
</nav>
45+
</section>
46+
47+
<textarea class="playable playable-css" style="height: 180px;">
48+
.links-list a {
49+
background-color: rgb(179,57,81);
50+
color: #fff;
51+
text-decoration: none;
52+
padding: 1em 2em;
53+
}
54+
55+
.links-list a:hover {
56+
background-color: rgb(66, 28, 40);
57+
color: #fff;
58+
}
59+
</textarea>
60+
61+
<textarea class="playable playable-html" style="height: 120px;">
62+
<nav>
63+
<ul class="links-list">
64+
<li><a href="">Link one</a></li>
65+
<li><a href="">Link two</a></li>
66+
<li><a href="">Link three</a></li>
67+
</ul>
68+
</nav>
69+
</textarea>
70+
71+
<div class="playable-buttons">
72+
<input id="reset" type="button" value="Reset" />
73+
</div>
74+
</body>
75+
<script src="../playable.js"></script>
76+
</html>

0 commit comments

Comments
 (0)