Hi, i want to have a fixed position menu at the top of my page, but when I use position: fixed; on the menu div all the div's below move up......

Thanks for your help

3 answers

-1
points
This was chosen as the best answer

Thanks for the lighting fast answer.

Answered over 6 years ago by sbl2000
  • no worries, hope it helps :D danwellman over 6 years ago
  • something went wrong here... danwellman almost 6 years ago
danwellman 5600
3
points

Add some padding to the top of the body element equal to the height of the fixed menu. That should push the other divs down while the fixed bar remains at the top

Answered over 6 years ago by danwellman
1
point

Another option might be to try using

margin-bottom;100px:

where 100px is equal to the heright of your div :)

Answered over 6 years ago by Kyle Sevenoaks