1

I have a Div, Fieldset and Table. the table takes about 40% of the width of the screen and I want the fieldset to outline it. It works on all sides except for the right side and extends all the way to the right side of the screen. Is there a way to make it stick to the table?

Ronald McDonald
  • 2,843
  • 11
  • 49
  • 67
  • Please post what you have so far. – Dabbler Oct 21 '11 at 20:24
  • possible duplicate of [is there anyway to have a fieldset width only be as wide as the controls in them](http://stackoverflow.com/questions/2302495/is-there-anyway-to-have-a-fieldset-width-only-be-as-wide-as-the-controls-in-them) – Brad Christie Oct 21 '11 at 20:25

1 Answers1

0

Set the <fieldset> to display:inline-block;, like this.

fieldset { display: inline-block; }

See also This SO question

Community
  • 1
  • 1
Brad Christie
  • 100,477
  • 16
  • 156
  • 200