<?xml version="1.0" encoding="windows-1252"?>
<node id="509881" title="Why is the PerlMonks page too wide?" created="2005-11-18 12:38:05" updated="2005-11-18 07:38:05">
<type id="17338">
sitefaqlet</type>
<author id="17342">
SiteDocClan</author>
<data>
<field name="doctext">
&lt;h1&gt;Why is the PerlMonks page too wide?&lt;/h1&gt;
&lt;h3&gt;&lt;i&gt;That is, something is causing the page to be wider than my browser window, forcing me to scroll horizontally.&lt;/i&gt;&lt;/h3&gt;

&lt;p&gt;
This node describes some of the most common causes of pages rendering too wide.
&lt;/p&gt;

&lt;p&gt;
Sometimes, the problem is purely an issue of the content of the node.
Because these affect everyone, regardless of settings, the solutions necessarily
involve "fixing" the node.
Examples:
&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;You're viewing a node that has a long line inside of a &lt;c&gt;&lt;pre&gt;&lt;/c&gt; tag.  
&lt;/p&gt;&lt;p&gt;
Solution: /msg the author or solicit one of the [janitors] to fix the problem.
(This usually means replacing the &lt;c&gt;&lt;pre&gt;&lt;/c&gt; tags with &lt;c&gt;&lt;code&gt;&lt;/c&gt; tags.)
&lt;/li&gt;

&lt;li&gt;You're viewing a node that has a very long string containing no whitespace.
(Note - This could affect different users differently, because line-wrapping
behavior is browser dependent. Some browsers wrap on certain non-whitespace characters. And some browsers (notably &lt;b&gt;IE&lt;/b&gt;) are crazy enough to &lt;i&gt;not&lt;/i&gt; wrap on certain types of whitespace such as a space followed by a slash).
&lt;/p&gt;&lt;p&gt;
Solution: /msg the author or solicit one of the [janitors] to fix the problem.
(The usual fix is to put the very long string into &lt;c&gt;&lt;code&gt;&lt;/c&gt; tags with a newline.)
&lt;/li&gt;

&lt;/ol&gt;

&lt;p&gt;
In other cases, the problem is an issue of how the node content is interacting with your 
[id://450961].
You should suspect one of these might be the cause if &lt;i&gt;you&lt;/i&gt; see a particular node render very wide but no one else does.
&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt; You're viewing a node with a long line of code, and you have "Code Wrapping Off" &lt;i&gt;checked&lt;/i&gt; (in your [id://450961]). This disables &lt;b&gt;all&lt;/b&gt; code wrapping; it makes &lt;c&gt;&lt;code&gt;&lt;/c&gt; blocks effectively like &lt;c&gt;&lt;pre&gt;&lt;/c&gt; blocks. 
&lt;/p&gt;&lt;p&gt;
Solution: Un-check "Code Wrapping Off" in your [id://450961].
&lt;/li&gt;

&lt;li&gt; You're viewing a node with a code block containing a long string with no whitespace, and you have "Auto Code Wrap" turned on (see [id://189399]), and 
you have your "Code Wrap Length" set quite high in your [id://450961]. 
&lt;/p&gt;&lt;p&gt;
Solution: You should either
set your "Code Wrap Length" to something low, like between 20 and 40; or 
turn off "Auto Code Wrap" entirely.
&lt;/li&gt;

&lt;li&gt; You're viewing a node with a code block containing a long string with no whitespace, and you have "Auto Code Wrap" turned on (see [id://189399]), but you're 
using a browser that doesn't support soft hyphens.
&lt;/p&gt;&lt;p&gt;
Solution: For quite a while, IE was the only browser that supported soft hyphens. But support for soft hyphens is now much more common. If your browser doesn't, it's time to think about upgrading. If that isn't an option, then you can simply turn off "Auto Code Wrap".
&lt;/li&gt;


&lt;/ol&gt;


&lt;p&gt;
Other possible causes:
&lt;/p&gt;


&lt;ol&gt;

&lt;li&gt;
You're viewing a public or private /msg containing a long line that trickily thwarts the [id://590082|Chatterbox Nodelet]'s efforts to ensure a sane wrap width. (It does this by inserting whitespace into long strings of non-spaces.) Or possibly the [id://590082|Chatterbox Nodelet] is inserting those spaces as intended, but your browser isn't wrapping on them (as noted above).
&lt;/p&gt;&lt;p&gt;
Solution: In either case, you basically have two options: switch browsers, or bear with it until the offending message goes away.  (If it's in your message inbox, you can delete it.)
&lt;/li&gt;

&lt;li&gt;You added CSS (in your [id://450961]) that makes textareas wide (for example,
&lt;tt&gt;textarea&amp;nbsp;{&amp;nbsp;width:&amp;nbsp;100%;&amp;nbsp;}&lt;/tt&gt; 
&lt;/p&gt;&lt;p&gt;
Solution: reduce that to a value that works for you, such as 75%. Or remove it altogether.
&lt;/li&gt;

&lt;li&gt;You've added some text to your 
[id://590101|Personal Nodelet] or [id://590089|Free Nodelet] 
that's forcing your nodelet sidebar to be wider than normal.
&lt;/p&gt;&lt;p&gt;
Solution: edit the contents of your 
[id://590101|Personal Nodelet] or [id://590089|Free Nodelet].
URLs, for example, should have relatively short link text.
Also remember that browsers wrap (break) on whitespace rather
liberally &amp;mdash; a fact you can exploit to good effect.
&lt;/li&gt;

&lt;/ol&gt;


&lt;p&gt;
&lt;i&gt;Based on the threads [id://528731], [id://458591], [id://394999], [id://189399], [id://235887], and others.&lt;/i&gt;
&lt;/p&gt;

&lt;hr/&gt;&lt;i&gt;Back to [PerlMonks FAQ]&lt;/i&gt;
</field>
</data>
</node>
