Javascript – Position fixed and width 100% element covering vertical scrollbar in IE

internet explorerjavascriptjqueryscrollbar

I have a div with WIDTH 100% and position fixed on the top of the page. It covers the vertical scrollbar in IE when vertical scrolling is needed on the html.

What can I do to avoid this (I can't change the position fixed bit)?

Can I detect whether page need vertical scrolling onload/resize and change that static div's width using jQuery?

or

Solve it through CSS altogether?

Best Answer

Found the problem: I accidentally attached overflow:auto on the body tag when it was only meant for the html tag.