The code sample below is visible in its entirety, yet a horizontal scroll bar appears.


Can that be prevented?

share|improve this question
FWIW - I don't get the scrollbar in FF4 on Win7 –  squillman Jun 15 '11 at 21:38
@squillman: I'm using FireFox 4.0.1 on Windows 7. –  raven Jun 15 '11 at 22:19
As am I shrug –  squillman Jun 15 '11 at 23:03
add comment

2 Answers


The last pixel of the last 1 is not visible.
You need the scrollbar to see the full glory of this pixel.

share|improve this answer
be nice if it word wrapped. –  staticx Jun 15 '11 at 21:09
No, it wouldn't. Word-wrapped code is very annoying. –  SLaks Jun 15 '11 at 21:18
It would be especially annoying when diagnosing newline-related syntax errors in questions. –  SLaks Jun 15 '11 at 21:19
true, i didnt think of that –  staticx Jun 15 '11 at 21:20
add comment

I don't see a scrollbar at all in FireFox 4.01. If you're still seeing it, it must be a cross-browser issue.


Went home and checked it in Safari (OSX Snow Leopard), with the default font size. The scrollbar is there.

share|improve this answer
I'm using FireFox 4.0.1. –  raven Jun 15 '11 at 22:19
I see it in FireFox 3.6 –  staticx Jun 15 '11 at 22:46
Rendering depends on fonts and font-size prefs, here and anywhere else. –  Tobu Jun 15 '11 at 23:33
I can't manage to rewrite my comment into a satisfactory answer (or be bothered to spend a lot of time). SLaks's is okay if you don't mind. –  Tobu Jun 16 '11 at 0:20
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .