Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add a dollar sign through css content

How can I display the "$" sign through CSS Content:" " I've tried all kinds of different codes. Putting just

div.example {Content:"$1000";}

displays on the site like "00".

Trying to do this before resorting to Javascript.

like image 236
Sana Avatar asked Dec 05 '22 22:12

Sana


1 Answers

.dollar:before {
    content: '$';
}
like image 187
Robin Carlo Catacutan Avatar answered Dec 31 '22 04:12

Robin Carlo Catacutan