XHTML, CSS, Javascript, Browser Notes

Wednesday, November 29, 2006

CSS TRICK: vertical scrollbar ie internet explorer

Another gem thanks to IE. It seems that Internet explorer automatically places a vertical scrollbar on the page even when it isn't needed. It serves no purpose other than to force us as developers to lose hair from the back and sides of our heads.

If you would like the scrollbar to appear ONLY when it is needed:
Add this bit of css to your style sheet:

html{overflow:auto}

And your done!

special thanks to the guys at trap17.com for their solution:
Css trick: Hide disabled Internet Explorer vertical scrollbar

0 Comments:

Post a Comment

<< Home