-2

I am following a tutorial and then changing what I can to experiment and create something of my own. I knew I would get to a point where I wanted something different that what was in the tutorial.In the tutorial the nav link are aligned to the right. I am wanting them more center but still to the right so it doesn't crowd the title/logo. I have commented lines out, changed sizes of different aspects, researched, and simply experimented. I know the answer is going to be stupid simple yet I could use some guidance. How should I fix my code?

css image

html image

  • Welcome to SO! Please read [ask] and consider updating your post with a [mre] of your actual code, not images! :) – AStombaugh Jul 12 '23 at 16:59

1 Answers1

0

In the CSS file, you can change the justify-content of the header class to be:

.header{
  justify-content: space-around;
 }

this way the elements inside the header tag get more squished together but still have some space between them; experiment with different values of justify-content like center or space-evenly to see what works for you.

Another approach is to change the margin-left value of the navbar class; set to something less than 20px for it to move to the left a bit more.

Also good luck on your coding journey!