Skip to content

Commit b17ce75

Browse files
Ruby FriedmanRuby Friedman
authored andcommitted
navbar with basic styling issue-#33
Navbar Added with basic styling issue-#33
1 parent 85ef8cd commit b17ce75

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

MeetDancers.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
</head>
99
<body>
1010
<div class="dancers">
11+
<div id="navbar" class="navbar">
12+
<ul>
13+
<li><a href="index.html#home">Home Page</a></li>
14+
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
15+
</ul>
16+
</div>
17+
1118
<h2 id="dancer-header">Meet the Dancers:</h2>
1219

1320
<div class="flex-image">

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
</head>
99

1010
<body>
11+
<div id="navbar" class="navbar">
12+
<ul>
13+
<li><a href="index.html#home">Home Page</a></li>
14+
<li><a href="MeetDancers.html">Meet the Dancers</a></li>
15+
</ul>
16+
</div>
17+
1118
<h1>
1219
Feeling
1320
<span id = "blue-text"><a href="blue.html" target="_self">Blue?</a></span>

stylesheet.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,46 @@
1313
}
1414

1515

16+
.navbar {
17+
background-color: rgb(25, 173, 72);;
18+
}
19+
20+
.navbar ul {
21+
list-style: none;
22+
width: 500px;
23+
margin: 0 auto;
24+
25+
padding: 0;
26+
/*
27+
For navbars use background color that stands out.
28+
*/
29+
background-color: rgb(25, 173, 72);
30+
text-align: center;
31+
}
32+
33+
/*
34+
Style individual list items.
35+
*/
36+
.navbar li {
37+
width: 150 px;
38+
border: 2px solid rgb(32, 152, 70);
39+
/*
40+
Show the navbar elements next to each other instead of on top of each
41+
other.
42+
*/
43+
padding: 9px;
44+
display: inline-block;
45+
line-height: 40px;
46+
}
47+
48+
/*
49+
Style links in navbar.
50+
*/
51+
.navbar a {
52+
color: #fff;
53+
text-decoration: none;
54+
}
55+
1656
.flex-image{
1757
display: flex;
1858
flex-direction: row;
@@ -56,3 +96,4 @@ p {
5696
font-family: "Montserrat", serif;
5797
font-style: oblique;
5898

99+
}

0 commit comments

Comments
 (0)