i am stuck i dont know how to write a nav-link could u guys help?
I am currently in a free code camp challenge.
i need to:
* You should have at least 3 `.nav-link` elements within the `#nav-bar`
* Each `.nav-link` element should have an `href` attribute
* Each `.nav-link` element should link to a corresponding element on the landing page (has an `href` with a value of another element's id. e.g. `#footer`)
my code so far:
html:
You should have at least 3 .nav-link elements within the #nav-bar
Failed:Each .nav-link element should have an href attribute
Failed:Each .nav-link element should link to a corresponding element on the landing page (has an href with a value of another element's id. e.g. #footer)
style:
#header {
position: fixed;
display: flex;
}
@media screen and (max-width: 992px) {
body {
background-color: blue;
color: white;
}
}
i am stuck i dont know how to write a
nav-link could u guys help?
I am currently in a free code camp challenge.
i need to:
* You should have at least 3 `.nav-link` elements
within the `#nav-bar`
* Each `.nav-link` element should have an `href` attribute
* Each `.nav-link` element should link
to a corresponding
element on the landing page (has an `href`
with a value of another element's id. e.g. `#footer`)
my code so far:
html:
You should have at least 3 .nav-link
elements within the #nav-bar
Failed:Each .nav-link element should
have an href attribute
Failed:Each .nav-link element should
link to a corresponding element on the
landing page (has an href with a value of another element's id. e.g. #footer)
style:
#header {
position: fixed;
display: flex;
}
@media screen and (max-width: 992px) {
body {
background-color: blue;
color: white;
}
}
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.