If you check the form at this link, you’ll see that required fields have a class="required" in the CSS and a * in the markup.
Can the * which shows in the markup be added entirely with CSS for divs that have this class?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
afterpseudo class:or, because you explicitly asked for a div with that class:
Should work (for IE only since IE8)
You can apply any style to this, of course. You can even do things like this:
This can also be achieved with JavaScript. jQuery: