Position: fixed problem

So Im having a problem that I cant quite figure out (I’m new at this). Ive been messing around with making a navigation bar in codepen using “position: fixed” on my <div class="wrapper"> to keep it pinned to the top of the page with the <ul>.
for some reason the two <div>'s outside the wrapper are fixed as well and I dont seem to get why that is. Maybe someone can help me out here?

https://codepen.io/Dustinjbrown01/pen/LoNBpE?editors=1100

You need to close the img element.

You have:

<img src="https://i.ibb.co/qRnJjJT/700889-18694689-3399950-b9530c32-image.jpg"

Should be:

<img src="https://i.ibb.co/qRnJjJT/700889-18694689-3399950-b9530c32-image.jpg">
1 Like

Darn! i figured it was something I missed. Thank you!

No problem, HTML can be pretty forgiving, but sometimes syntax errors just cascade and you end up with weirdness.