E
Edward A. Falk
Hi all; I'm trying to do something that I thought would be very simple. I want
to wrap a border around a block of text.
Style sheet:
.example {
margin-left: 2em;
padding: 5px 1em;
border: 1px solid black;
}
Html:
<p>By now your code should look like this:</p>
<pre class=example>
yada yada yada
yada yada yada
</pre>
This gives me a box around my <pre> block, but the box extends all the
way to the right edge of the browser window. How can I make it small
enough to just enclose the text?
to wrap a border around a block of text.
Style sheet:
.example {
margin-left: 2em;
padding: 5px 1em;
border: 1px solid black;
}
Html:
<p>By now your code should look like this:</p>
<pre class=example>
yada yada yada
yada yada yada
</pre>
This gives me a box around my <pre> block, but the box extends all the
way to the right edge of the browser window. How can I make it small
enough to just enclose the text?