Symfony2 Forms: Easiest way to add an * to required field labels
By default, required field labels are rendered with the "required" class. To add an asterisk in these labels, just add the following in your stylesheet:
.required:after {
content: "*";
}
Written by Andréia Bohner
Related protips
1 Response

Thanks a lot! This is so simple and definitely effective.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#