The “:after” selector is not working when applied to an input with FF and IE
input:after {
content: "title";
}
whereas it’s working with p, a, etc.
Is it a bug?
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.
Nope is not a bug, :after/:before don’t work consistently (and properly) on self closing elements, as David Thomas said. The cause is that unlike an other elements, you can’t nest tags inside inputs or imgs, unlike a or span tags.
Read on at CSS content generation before or after 'input' elements.