I have a bootstrap form like this:
<div class="container">
<form class="form-horizontal">
<div class="form-group">
<div class="col-xs-2 text-right">
<label class="control-label">Name</label>
</div>
<div class="required col-xs-10" >
<input class="form-control" type="text" />
</div>
</div>
</form>
</div>
Now the name field is required so i want to display an asterisk right next to it. I tried this:
.required:after {
content: " *";
}
But it is displayed under the input, not right next to it. How can i fix this? JSFiddle: http://jsfiddle.net/Dc5yw/