Tell us what’s happening:
Describe your issue in detail here.
Your code so far
<!-- file: index.html -->
<ul id='navbar'>
<li>
<a href='#welcome-section'>Welcome Section</a>
</li>
<li>
<a href='#projects'>Projects</a>
</li>
</ul>
<div id='welcome-section'>
<h1>Text</h1>
</div>
<div id='projects'>
<div class='project-tile'></div>
<a href='https://www.freecodecamp.org/'>FCM</a>
</div>
<div id='profiles'>
<a id='profile-link' target='_blank' href='https://github.com/Chetanpathrabe'>Chetan Github</a>
</div>
/* file: styles.css */
@media (max-width: 600px) {
#navbar {
padding: 0rem 1rem;
justify-content: center;
display: flex;
}
}
#navbar {
background-color: var(--primary-color);
color: #fff;
padding: 0rem 3rem;
display: flex;
justify-content: flex-end;
position: fixed;
width: 100vw;
}
@media screen and (min-width: 480px) {
#projects {
padding: 0rem 2rem;
justify-content: center;
}
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0
Challenge Information:
Personal Portfolio Webpage - Build a Personal Portfolio Webpage
Media query not working