Fitting a <fieldset> to the size of its content with CSS?

Stefan Kendall picture Stefan Kendall · Oct 6, 2010 · Viewed 20.1k times · Source

Here's a fiddle.

I need to make the <fieldset> the width of its contents, rather than its parent. Is there a good way to do this?

Answer

Smegger picture Smegger · Oct 6, 2010

Add display:inline to the fieldset http://jsfiddle.net/XDMfN/92/