How do I prevent this from happening?


I tried adding margin and padding to the child elements insider to go up, but it is not working.

Hi @Kasakapen !

If you want to move your features text down and which will push down all of the other elements, then you can apply margin-top to the #features selector in your css.

1 Like

thanks a lot, that worked…
but when i added background-color this happened: https://codepen.io/nianaz/pen/yLXeBWR?editors=1100
the pink color its supposed to go horizontally on the top, but now its vertical

I would get rid of bottom:0; for the header.

I would add a width:100%; for the header too.

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: pink;
}
1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.