Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<fieldset>'s width in html [duplicate]

Tags:

html

fieldset

I have an issue with the width of a fieldset. It's not auto adjusting to it's content. It sets the width to the width of the screen. Is there a way to set it to auto adjust to the width of the content of the fieldset?

like image 911
user441940 Avatar asked Sep 08 '10 01:09

user441940


1 Answers

A fieldset is as large as the parent container, just like any block-level element, if you do not give it a fixed width. So you have to make it display: inline-block.

like image 55
Frank van Wijk Avatar answered Sep 19 '22 04:09

Frank van Wijk