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