We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 357f10b + 2a53133 commit 2c46963Copy full SHA for 2c46963
cookbook/form/form_customization.rst
@@ -896,6 +896,17 @@ original template:
896
897
See :ref:`cookbook-form-theming-methods` for how to apply this customization.
898
899
+.. sidebar:: Using CSS only
900
+
901
+ By default, ``label`` tags of required fields are rendered with a
902
+ ``required`` CSS class. Thus, you can also add an Asterisk using CSS only:
903
904
+ .. code-block:: css
905
906
+ label.required:before {
907
+ content: "* ";
908
+ }
909
910
Adding "help" messages
911
~~~~~~~~~~~~~~~~~~~~~~
912
0 commit comments