Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS3: Is it possible to have thousands separator in numbers? [duplicate]

Possible Duplicate:
Formatting numbers (decimal places, thousands separators, etc) with CSS

I'm working on a web application for statistics (LAMP platform), and I was wondering if CSS3 could take care of thousands separation in numbers.

For example, I would like that a writing just like

Items sold: 101715

could appear like

Items sold: 101 715

So with a space as a thousands separator.

I know I can have it with PHP, and also that for something like CSS3 this has to do with semantic evaluation of related content, but I started wondering if this could be possible.

Anyone?

like image 327
Federico Zancan Avatar asked Sep 06 '25 03:09

Federico Zancan


1 Answers

No CSS cant format numbers, if you would like to do something like that in the client, you would have to look into javascript.

like image 103
Stig Hausberg Avatar answered Sep 07 '25 20:09

Stig Hausberg