I'm trying to make a navigation bar but I'm having a lot of trouble making changes to separate elements without changing every single item in the nav bar.
For example, if I wanted more padding/space between for only one element in the nav bar (in between the name and other elements such as projects, resume, etc), how would I achieve that? Or even if I wanted to change the text size for a single item in the nav bar (Make first name bigger than the rest).
Here is the HTML:
<div class="navbar">
<a href="#First Name">First Name</a>
<a href="#Projects">Projects</a>
<a href="#Resume">Resume</a>
<a href="#About">About</a>
</div>
Here is the CSS:
.navbar {
overflow: hidden;
background-color: white;
position: fixed; /* Set the navbar to fixed position */
top: 0; /* Position the navbar at the top of the page */
width: 100%; /* Full width */
border-bottom: 1px solid black;
}
.navbar a {
float: left;
display: block;
color: black;
text-align: center;
padding: 30px 16px;
text-decoration: none;
font-size: 200%;
}