How to add dollar sign through css content
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.
+3
Sana
source
to share
3 answers
.dollar:before {
content: '$';
}
+7
Robin carlo catacutan
source
to share
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 ...
See JSfiddle here
0
Brian John
source
to share
You can use the following code to display dollar sign in CSS content property
div.example { content: "\0024"; }
0
shubham jain
source
to share