How can I show the "$" sign through the CSS content: "I've tried all kinds of codes. Input only
div.example {Content:"$1000";}
displayed on site type "00".
Trying to do this before resorting to Javascript.
.dollar:before { content: '$'; }
Not enough HTML to proceed, but take a snapshot:
The CSS property has to content be used with ::before and ::after , and when I put the $ inside my content declaration everything works ...
content
::before
::after
See JSfiddle here
You can use the following code to display dollar sign in CSS content property
div.example { content: "\0024"; }