Currently, I have a <span>
and a <select>
. However, in the following code, the <span>
is displayed above the <select>
. My goal is to arrange it so that the <span>
is shown first, followed by the <select>
.
.requiredStar {
color: #FF0000;
}
.input-block-level {
display: block;
width: 100%;
min-height: 30px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
<div class="row-fluid">
<div class="span12">
<span class="requiredStar">*</span>
<select class="input-block-level">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</div>
</div>
To achieve this layout, how can I position the <select>
element next to the <span>
?