Tell us what’s happening:
I’m having trouble aligning my #nav-links. It was working, and I put an img tag for a picture, but decided not to put it in and when I deleted it, the alignment got all messed up.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta display="viewport">
<link rel="stylesheet"
href="styles.css">
</nav class="nav-bar">
</section>
<title>Portfolio</title>
<section id="welcome-section">
<nav id="nav-bar">
<a class="nav-link" href="#about">About</a>
<a class="nav-link" href="#work">Work</a>
<a class="nav-link" href="#contact">Contact Me</a>
</nav>
<h1>My name is Nate</h1>
<h3>Just getting started coding</h3>
<h4>I fell in love with it watching YouTube videos!</h4>
</section>
<h1>Work</h1>
<nav>
<section><a id="nav-links" href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-survey-form-project/build-a-survey-form">Survey Form</a></section>
<section><a id="nav-link"
href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-tribute-page-project/build-a-tribute-page"><section>Tribute Page
</section></a>
<section><a id="nav-links"
href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-technical-documentation-page-project/build-a-technical-documentation-page"><section>Technical Documentation Page
</a></section>
<section><a id="nav-link"
href="https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-product-landing-page-project/build-a-product-landing-page"><section>Product-Landing Page
</section></a>
</nav>
</head>
<body>
<section></section>
</body>
</html>
/* file: styles.css */
#nav-link {
font-size: 20px;
text-align: center;
}
h1, h3, h4 {
text-align: center;
}
.nav-link {
text-align: center;
display: flex;
justify-content: space-around;
}
#nav-links {
text-align: center;
font-size: 20px;
display: flex;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Challenge Information:
Personal Portfolio Webpage - Build a Personal Portfolio Webpage