Хорошая вещь о label
тегах заключается в том, что вы можете обернуть элементы input
:
<label>
<input type="checkbox" id="birth_city" name="birth_city" />
City
</label>
<label>
<input type="checkbox" id="birth_state" name="birth_state" />
State
</label>
<label>
<input type="checkbox" id="birth_country" name="birth_country" />
Country
</label>
И если вы добавите следующий CSS:
label {
display: block;
}
Будет отображеноэто как вы хотите.
Демо здесь
Поскольку вы НЕ МОЖЕТЕ редактировать свой HTML, этот CSS будет работать:
input, label {
float: left;
}
input {
clear: both;
}
Демо здесь