Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Another CSS alternative exists (an alternative using CSS to address this horizontal-scrolling problem).

davido offered:

duplicate perl environments uses <pre> tags, which are a longstanding problem, not just in PerlMonks, but just about everywhere. If it's a big problem you could specify in your CSS that pre blocks should be constrained to a maximum size, and should be scrollable.

How-dy! It ought to noted that few formatting mishaps on Perlmonks are as irritating to me (and considerable other users) as long-line posts (horiz. scrolling). The <pre> tag is indeed deprecated at Perlmonks, but is it a reasonable expectation that most users without long experience here will remember that? Plus, is it (apparently) true that users diligently check the markup they are using against the Monastery guidelines? Point taken perhaps without me going on and on about user behavior ...

A code solution always seems attractive when one can be found. Here's one for the PRE problem on Perlmonks nodes:

/* style frag CSS */ pre { white-space : pre-wrap }

The pre-wrap is defined at as doing:

This value prevents user agents from collapsing sequences of white space. Lines are broken at newlines in the source, at occurrences of "\A" in generated content, and as necessary to fill line boxes.
and is from the CSS Level 2 spec.

I am not on the inside wrt nuts and bolts of the Everything machine and the production of markup on PMo. So I have to leave it to someone else to work out the best way to actually implement the application of a default style setting (that is different from the default in most user agents). But a simple approach would be to just change the Common CSS for all Themes.

I run two CSS sheets in my Perlmonks reading / posting which I do consistently using only FFx (Firefox). One was nicknamed "NYPM Blue" by me a long time ago and is set up in User Stylesheet Settings in Settings. The original 6 Themes include the Dark theme which I have toggled in User settings. So the Dark theme is CSS-cascaded previous to my custom NYPM Blue sheet. I've got the NYPM Blue sheet housed at You, the public, can look for yourselves.

In addition, I have a UserStyle (a Mozilla / FFx thing) for the Perlmonks chatterbox in the sidebar, and one for CB60 in the sidebar (just applying the stylesheet doesn't put either in the sidebar: see other nodes here on PMo for how to do that) (both living under here, to browse code –use Stylish to install them) …and as an (unpublished) work in progress, a sheet for Threaded Discussion ("multinode") pages (which might or might not be merge-able into one of the other stylsheets).

  • (1) The Chatterbox restyling is part of the NYPMBlue Style (PMoNYPMBlue.UserStyle.css) rather than being in a separate CSS sheet file. –Intrepid 2012-09-03 Eastern Daylight Time

In reply to Re^3: Page rendering bugs by Intrepid
in thread Page rendering bugs by kimmel

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others scrutinizing the Monastery: (7)
    As of 2018-06-21 14:47 GMT
    Find Nodes?
      Voting Booth?
      Should cpanminus be part of the standard Perl release?

      Results (118 votes). Check out past polls.