Having trouble with my navigation styling - the alignment and background color only show up when I remove the closing brace for the "nav" CSS. I have 2 different CSS stylings in place to center the nav items and add a background color, but something's not quite right.
nav {
text-align: center;
background-color: gray;
}
.navbar {
font-family: Helvetica, Sans-Serif;
font-weight: bold;
font-size: 1em;
text-align: center;
}
...
<nav class="navbar">
<a class="current" href="#">Home</a>
<a href="articles.html">Articles</a>
<a href="teamreports.html">Team Reports</a>
<a href="#">Team Compendium</a>
<a href="#">Resources</a>
<a href="#">Events</a>
</nav>
<br />
<div>
<p>Sample text goes here.</p>
</div>
Learning HTML and CSS can be tricky, but by recreating existing websites, you can improve your skills and eventually create your own unique designs.