hey guys, i’m doing the free code camp product landing page and i’m having trouble with my nav-bar and the imported video.
about the nav bar i can’t link him to a specific location in the page. it’s telling me that i need to have an href attribute but where do i write it and do i need to add the to it?
Beside that, padding: 200px; in your CSS #nav-bar selector, makes your links clickable areas overlap each other so you need to adjust it
To see what I mean, give your CSS #nav-bar selector something like a background-color: white;
After you adjust your links’ padding, if you still want your links to display one next to the other, you need to add a new CSS selector for your <ul> element, and give that a display: flex; too, something like this:
#nav-bar {
display: flex;
}
ul {
display: flex;
}
.nav-link {
background-color: white; /* this is for debug*/
text-decoration:underline;
text-align:center;
display:inline;
padding:20px;
}
thanks for your help but i still have one more question.
i want my nav-bar to be at the center of the page, i did what you wrote and it is still located at the left side of the page. do you any idea what will hepl?
p.s. also do you know to responsively center the video?