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?
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?
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.