How to position the legend inside a fieldset with a border? [duplicate] August 3, 2023 by Tarik I found that simple float:left for LEGEND will do the job. Codepen sample: http://codepen.io/vkjgr/pen/oFdBa