hwg-techniques archives | Jul 2000 | new search | results | previous | next |
CSS to put a border around textby "Debbie O'Meara" <domeara(at)QuixNet.net> |
|
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