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

This was chosen as the best answer

Thanks for the lighting fast answer.

Answered almost 8 years ago by sbl2000
  • no worries, hope it helps :D danwellman almost 8 years ago
  • something went wrong here... danwellman almost 7 years ago
danwellman 5600

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 almost 8 years ago by danwellman

Another option might be to try using


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

Answered almost 8 years ago by Kyle Sevenoaks