Hi I am a beginner in web development. I'll be clear this is homework and after trying a lot of things I can't get it done so here I am. I was given an assignment to make a clone of the university's website but with our own styles and I have run into a bit of a problem. I want to remove all the spacing in the navbar as it doesn't look good.
I have seen posts with people putting negative margin but those were very old posts so I figured there must be a better modern approach.
Here is the codepen: https://codepen.io/pr1232/pen/MWJPooq
I have put a background-color
on the links and I want that color to fill the entire height of the navbar and no spaces between adjacent links. The color right now is just for highlighting purposes. I tried to do the same with padding but then I had to hardcode a value.