Tell us what’s happening:
Hey!
My only error is:
Your
#nav-bar
should always be at the top of the viewport.
I’ve made the header with a fixed position, and I also added a fixed position to #nav-bar itself (Which doesn’t really help, just did it for trying to pass).
You can also see it live here and the entire code in the repo.
Can you please help me find the issue? Thanks!
Your code so far
header {
padding: 0 4rem;
display: flex;
justify-content: space-between;
align-items: center;
background-color: black;
position: fixed;
width: 100%;
top: 0;
z-index: 999;
}
/* I don't need it but it still doesn't fix the issue */
#nav-bar {
position: fixed;
right: 0;
}
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Challenge: Product Landing Page - Build a Product Landing Page