Jump to content

MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 60: Line 60:


pre {
pre {
    display: inline-block;
     white-space: pre-wrap !important; /* Allows wrapping of text */  
     white-space: pre-wrap !important; /* Allows wrapping of text */  
     max-width: 80%; /* Ensures preformatted text does not exceed the width of the container */
     max-width: 80%; /* Ensures preformatted text does not exceed the width of the container */
     word-wrap: break-word; /* Ensures long words are broken */
     word-wrap: break-word; /* Ensures long words are broken */
}
pre, .preformatted .contentBody {
    display: inline-block;
    white-space: pre-wrap !important; /* Allows wrapping of text */
    max-width: 80% !important; /* Ensures preformatted text does not exceed the width of the container */
     word-wrap: break-word; /* Ensures long words are broken */
     word-wrap: break-word; /* Ensures long words are broken */
    overflow: auto;
}
}