From what I can put together, it looks like you should use the fieldset element (since you are grouping the form elements together), which also conveniently looks the way you want:
<fieldset> <legend>Promoter</legend> <select> <option>Choose a promoter</option> </select> </fieldset>
Styling is simple. Align the legend text and draw the fieldset border using CSS:
fieldset { border: 1px solid black; border-radius: 5px; } legend { text-align: center; }
For a live example, see this demo of jsFiddle .
source share