Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll bars showing on printed page in IE9?

I'm having an issue with IE9 showing horizontal scroll bars on a printed page even though the contents of the page fit entirely. I've tried several things to remove them in my print css. Has anyone else had this issue and found a way around it?

like image 304
Ryan Avatar asked Mar 10 '11 17:03

Ryan


People also ask

Why is scrollbar always visible?

Make sure overflow is set to "scroll" not "auto." With that said, in OS X Lion, overflow set to "scroll" behaves more like auto in that scrollbars will still only show when being used. So if any the solutions above don't appear to be working that might be why. You can style it accordingly if you don't like the default.

How do I get rid of the scrollbar in wordpress?

Removing the scroll bar is easy; you would simply need to apply overflow:hidden to the body selector.

How do I get rid of the scroll bar on the right side?

Replies (1) Select " Display " on left and scroll down to " automatically hide scroll bars in Windows " . Now Enable it. Was this reply helpful?

How do I keep scroll bars visible?

Go to Settings / Ease of Access / Display and turn off Automatically hide scroll bars in Windows.


2 Answers

I faced the same issue. It is a funny fix. Define the overflow property as important. It works. LOL on IE.

overflow:hidden !important;
like image 114
shibualexis Avatar answered Oct 02 '22 20:10

shibualexis


I have had this issue several times with IE in the past. It is usually a margin issue. Different browsers calculate margins differently. How are you positioning the elements? Do you have a fixed-width wrapper around the content or does the body expand to the browser width? It's really difficult to pinpoint the problem without the actual css code.

I would suggest removing any negative margins you have (IE does not like these), and check to see if you have any right margins on elements that are unnecessary.

like image 22
biggles Avatar answered Oct 02 '22 22:10

biggles