I'm having trouble displaying content before input element.
http://plnkr.co/edit/9UC93nnNm6vmmLEIYDJK?p=preview
On this plunker you can see input:before
should display something, but it's not displaying anything
1) If I change it to p:before
it displays content before p
, but without incremented value, what should I change there?
2) Why it doesn't display values for input:before
?
[EDIT after Daniels's and dTDesign's answers/comments]
@dTDesign
I changed it to p
, it adds content now and with combination of @Daniel's answer (I changed .main to main) I got displaying content in front of paragraphs with correct incrementing.
so you can use main within HTML5.
Update:
It works fine now: