1
How can I vertically center a tag (Top countries) with the form?
Code:
<div class="wrapper" role="main"><!-- START Content -->
<div class="container"><!--- START Site Content --->
<div class="row">
<div id="form_filter" class="col-md-8" style="border:2px solid red">
<div class="row">
<span>Top Countries</span>
<form class="form-inline" role="form" action="#" method="get">
<div class="form-group">
<label for="period">Period</label>
<select class="form-control" id="period" name="period">
<option value="">All Time</option>
<option value="">Today</option>
<option value="">This Week</option>
<option value="">This Month</option>
</select>
</div>
<div class="form-group">
<label for="country_list">Country</label>
<select class="form-control" id="input_country" name="input_country">
<option value="">All (WorldWide)</option>
</select>
</div>
</form>
</div>
</div>
</div>
</div><!--- END Site Content --->
</div><!-- END Content -->
Imagery:
How it should look:
Apparently it is already vertically centered (it would be better with
padding: 4px 0
). You mean centered horizontally?– Renan Gomes
@Renan was added as the alignment should look, (I’m using bootstrap)
– Ricardo
(chute) try placing the span inside the form
– bfavaretto
@bfavaretto are now side by side, but still the top countries is just above the form
– Ricardo
Tried display: inline-block ?
– Guilherme Nascimento
@Guilhermenascimento Yes, I’ve used display: inline-block/display:block
– Ricardo
@Guilhermenascimento float did not resolve the difference between Top Countries and Period
– Ricardo
@Guilhermenascimento we could continue on Chat
– Ricardo