Thanks for replying Matt. Yes, that's true, I could set the width
explicitly, but in font-dependant units.
Is that the only way? There's no other way to get IE to auto-size the width
of a div to hold its contents.
> > I have some content inside a colored and bordered div. I'd like
> the div to
> > auto-size its width to accommodate the content. "display:
> table" works for
> > current versions of Opera and Firefox, but not IE (all on
> windows; all I've
> > tested so far).
> > I can set the width explicitly, but that doesn't accommodate
> variations in
> > rendered font size, or the user changing text size manually.
> > What other choices do I have?
> if it's just font size variation you're concerned about, you could set
> the width of the div in em units...
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/