Navbar help
i cant get the navbar to go end to end on the page
26 Replies
I suggest that you create a codepen or similar so that people can better understand what your issue is.
You don't need to add everything, just the relevant code
ok
im not sure how im gonna add the pic to it tho
you don't
that's unnecessary to demonstrate the problem with the menu
just set the background to black
ok
there u go
it needs help, thats why i named it Help
the css i added is from my original code
ping me if u can fix it
Firstly .navlist doesn’t exist in the html.
Either give the UL element this class name or change the CSS selector to nag ul {.
Secondly I recommend you move the inline styles that you have in the HTML into the css. And don’t bother with the float:left as you are using flex so that will have no effect.
ok so i took out the css in the html, and added the class names, now what
actually it isnt really working after i took out the css from the html
the idea is for you to copy-paste, but only the necessary to reproduce the problem
if you're fiddling with html and css for the codepen, you should just start over
can i paste the css?
stuff that isn't necessary include background images (you can use placeholders, if needed)
is it a css issue?
Yh prob
then you're kinda required to
oh and type one of those tick marks for me
im on phone so i cant do it
yk the ones for the code?
` <-- this?
yes
why do you need it?
so its easier for the css
that's an invalid css character
why would you put that in the codepen?
there we go
that's not a codepen
In your codepen you have deleted the closing tag on the <li> elements and also the opening <a > so none of it works at the moment. I’m sure this isn’t the case in your original code but it doesn’t help debug it.
the code should be stripped just enough so that all the fat isn't included, but still perfectly reproduces the issue
heres my html for reference
im really messing with the css so it looks good, but i cant the the freaking navbar to fill the whole thing
but then i also want the navbar to be on the img bc it just looks cool
tell me this dont look cool
the issue with using text on top of an image is that the image can shrink or grow so you never know where the text may fall on top of the image. esp with white AND black, its difficult to ensure that the text contrast will pass accessibility. like just in your screenshot, where the green is ober the white i cant read that at all. all i see is 'o' and '029'. you may want to consider giving the nav bar a background-color even if its semi-transparent or has a blur to ensure users can read the menu items.
As the guys above have asked several times, its advised to throw your html and css into a codepen so ppl can easily debug and help you. If you make it easier, ppl are more inclined to help