Cannot get 2 elements in the same div to line up

I am currently working on the Portfolio page in the first set of front-end developer projects. The navbar on the right does not react to any padding or margin going up or down. I obviously want the navbar to line up with my name, but it doesn’t react to any styling. Can anyone help? Thanks!

Okay, so I think I see your problem. your heading h1, is a block level element. That basically means it takes up the entire row it’s created on, that’s why your ul is appearing below. try adding display: inline; to your h1 styles

1 Like