Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Tracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsHow can I add a margin here to create space between my label and select menu?
Hello,
I need a margin between my label "state' and the select menu form. My attempts are not working, any suggestions?
<div class="state"> <label for="state">State:</label><br>
<select id="state" name="user_state" value ="">
<option value="Choose-state">Choose State</option>
<option value="Mississippi">Mississippi</option>
<option value="Washington">Washington</option>
<option value="Oklahoma">Oklahoma</option>
<option value="Texas">Texas</option>
<option value="Virgina">Virgina</option>
</select>
</div>
1 Answer

Steven Parker
224,872 PointsThere are several options. But perhaps the easiest is an extra <br>
.
<label for="state">State:</label><br><br>
If you need a finer adjustment, you could also use CSS.
Tracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsTracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsThank you. That worked. Did not think to do that!