Difference between revisions of "MediaWiki talk:Common.css"

From Rejection Wiki
Jump to navigationJump to search
(Created page with "I just figured out that, pretty much across the board in modern browsers, adding the following to your CSS here (within 'blockquote') will make them automatically respect the ...")
 
(No difference)

Latest revision as of 04:09, 16 October 2016

I just figured out that, pretty much across the board in modern browsers, adding the following to your CSS here (within 'blockquote') will make them automatically respect the line breaks people paste in without it breaking the box:

 word-wrap: break-word;      /* IE 5.5-7 */
 white-space: -moz-pre-wrap; /* Firefox 1.0-2.0 */
 white-space: pre-wrap;      /* current browsers */

Source/example: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space#Line_breaks_inside_%3Cpre%3E_elements

Paging D. A. Hosek.

--DA (talk) 04:09, 16 October 2016 (PDT)