Jump to content

MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
Tag: Manual revert
No edit summary
Line 56: Line 56:
     white-space: normal;
     white-space: normal;
*/
*/
/* per chatgitp 6/5/24: */
pre, .preformatted {
    white-space: pre-wrap; /* Allows wrapping of text */
    max-width: 100%; /* Ensures preformatted text does not exceed the width of the container */
    overflow-x: auto; /* Adds horizontal scroll if the text is too wide */
    word-wrap: break-word; /* Ensures long words are broken */
}


/* looks better w/ pre set to smaller width than page, but on read mode it still spills off right margin*/
/* looks better w/ pre set to smaller width than page, but on read mode it still spills off right margin*/