See the Example and Learn More.
Example:
HTML
<h2>Standard pre</h2>
<pre>This is a standard pre. It will use as much space as it needs.</pre>
<h2>Fixed width pre</h2>
<div style="width:200px;overflow:auto">
<pre>This is a pre with a fixed width. It will use as much space as specified.</pre>
</div>
How to add HTML <pre> Tag | HTML Tag |
How to create a pre-formatted text with a fixed width (with CSS) | HTML Tag |
How to set Default CSS Settings on HTML pre Tag | HTML Tag |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |