Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Explicit forum width

by flyingmoose (Priest)
on Apr 17, 2004 at 15:10 UTC ( [id://345971]=monkdiscuss: print w/replies, xml ) Need Help??

I'm increasingly seeing posts stretch the main page such that horizontal scrolling becomes neccessary. Can anything be done to cap the forum at a certain width and enforce wrapping of text/titles/etc? Just a thought -- though I do find it annoying.

Replies are listed 'Best First'.
Re: Explicit forum width
by kvale (Monsignor) on Apr 17, 2004 at 15:22 UTC
    I thinks these sorts of problems are caused by people using <pre> tags. <code> tags are much nicer to the forum, as they do text wrapping, while allowing one to recover the original code with a download. Long titles like OT: Advice on escaping Corporate America / Starting own consultancy outfit? usually wrap automatically.

    If you see such problems, consider the node for editing.

    -Mark

      I am always one to ask the meta-question "can this be automated"? So, why consider when we can s/$pretag/you-can't-do-that/g ? It seems to go with the philosophy of not trusting user input on internet forums.

      I haven't checked, but I am assuming we are doing things to remove javascript...

      <SCRIPT LANGUAGE="JavaScript"> document.write("Hello World!"); </SCRIPT>

      So yes, why do we allow pre?

        because there are legitimate uses of pre tags

        some monks us them to create small ascii art sigs.

        Other monks use them when raw data, or the output of a script -- which they don't want to put in code blocks because it's not code, it shouldnt' be included in the code download

        Generating a warning if someone submits text with a pre tag containing lines longer then N characters is one thing, but it would be a travesty to flat out reject the tag just because some people don't know how to use it in a non-obtrusive way.

        PS: regecting pre tags doesn't really do anthing about long sequences of &nbsp; tags...

Re: Explicit forum width
by Chady (Priest) on Apr 17, 2004 at 16:31 UTC

      "Auto" code wrapping only partially works for browsers that don't support soft hyphens (it won't break long sequences of non-white-space characters and this often means you'll see very wide pages). In fact, flyingmoose's problem could well be the use of "auto" code wrapping.

      For quite a long time, the only browser that supported &shy; was IE6. Finally, some of the other browsers are catching up on this front. I've heard reports that the latest FireFox and latest Opera now support &shy;, though I haven't verified these claims.

      See Re: Space or Soft Hyphens (see code wrap) to see if your browser supports soft hyphens.

      I have a design for how to reformat <pre> tags similar to how "auto" code wrapping works, which will prevent most of the problems with <pre> tags making pages wide while still having them appear the same (if your window is wide enough).

      I'll probably make this optional and it won't use &shy; unless you've enabled auto code wrapping. No, there is no schedule for when it will be available. (At the moment, I'm still rebuilding part of my PM development platform.)

      - tye        

        I'm using firefox 0.8 on Debian. Horiz scrolling only appears to be screwy on the monastery gates, so maybe it's a node from one of the less visited forums? I've tried this with code wrapping on and off both.

        Not a big deal, prob not worth worrying about, just thought I'd ask.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://345971]
Approved by kvale
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found