Skip to content

Instantly share code, notes, and snippets.

@umidjons
Created February 21, 2015 07:16
Show Gist options
  • Save umidjons/7e8d4c54a4c06321596f to your computer and use it in GitHub Desktop.
Save umidjons/7e8d4c54a4c06321596f to your computer and use it in GitHub Desktop.
Show asterisk for required fields

Show asterisk for required fields

.req:after{
	color:#e32;
	content:' *';
	display:inline;
}
<div class="form-group">
	<div class="col-sm-4">
		<label class="req">Name</label>
		<input class="form-control" required>
	</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment