Sent by Jeff Shepherd on 20 February 2003 21:09
I would like to take preformatted text and have it within a white
box. I can do this pretty easily, however the white extends to the
right border of the page, rather than clinging to the right of the
text. Like this:
+----------------------------------------------------------+
| Here is |
| the text |
+----------------------------------------------------------+
This is what I want:
+----------+
| Here is |
| the text |
+----------+
I can get the effect I want by enclosing the text within a table. Is
there a way to accomplish this using CSS only?
I have HTML samples at http://www.ashep.com/test/index.html
--
- Jeff -