Template:Pre

From LDraw.org Wiki
Revision as of 16:55, 24 January 2015 by Owen Burgoyne (talk | contribs) (Created page with "<p style="width:auto; border:1px solid #DDDDDD; border-radius:2px; background-color:#F9F9F9; font-family:monospace; padding:1em; line-height:1.15; margin-bottom:1em; white-spa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{1}}}

Usage

{{pre|text}}

This is an updated version of the <pre> tag, which dynamically alters text based on the width of the element.

Text is displayed as would be expected with the <pre> tag, but any lines that are too long to display are simply wrapped to the next line, rather than overflowing or disappearing.