The overflow:auto on pre elements caused horizontal scrollbars in Firefox when code lines exceeded container width. Adding white-space:pre-wrap enables natural line wrapping while preserving whitespace formatting, eliminating the need for horizontal scrolling in narrow viewports.