I’m using Twitter Bootstrap 3, and I don’t have any additional CSS file.
I have the following code somewhere in my HTML page:
<div class="col-md-12">
<div class="col-md-5">
<input type="text" class="form-control" placeholder="Task"/>
</div>
<div class="col-md-5">
<input type="textarea" class="form-control" placeholder="Descr."/>
</div>
<a ng-click="addTask()" class="glyphicon glyphicon-plus"></a>
</div>
It looks like this:
As you can see, the +
is not well centered. I would like to vertical align it with my inputs.
I suppose it is something simple, but I have not yet found a good solution …
Can you help me finding how I can vertical center this <a>
?
Thanks 🙂
3
Answers
Add this(change the px to your liking)
You can also use
vertical-align: middle;
:Try this: