CSS to put a border around text

by "Debbie O'Meara" <domeara(at)QuixNet.net>

 Date:  Sat, 29 Jul 2000 12:27:32 -0700
 To:  <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Hi--

Here's the CSS that I'm using to put a box around some text, a small text
block that I'm centering on the page as a highlight box.  The font is
rendering fine in both browsers. In Netscape I get a neat little box that
just surrounds the small block of text--just what I'm looking for.  IE
inserts a box that reaches the full width of the page, far beyond the text.
Other than making it a table cell, is there anything I can change so that
the box fits the width of the text in IE?

p.box { border: thin solid black;
            padding:  10px;
            font:  italic 12pt Georgia;
           }

Thanks
Debbie

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA