Formatting numbers (decimal places, thousands separators, localization, etc) with CSS
Unfortunately, it's not possible with CSS currently, but you can use Number.prototype.toLocaleString()
. It can also format for other number formats, e.g. latin, arabic, etc.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
CSS3: Is it possible to have thousands separator in numbers?
No CSS cant format numbers, if you would like to do something like that in the client, you would have to look into javascript.
CSS - 10000 presented as 10 000?
You could use a dirty SEO trick: putting plain "10000" in your page and replace it to "10 000" via javascript when it's displayed.
This way robots are more likely to index your "10000" while your users will see "10 000". I know taht your request implies CSS only, but I see no other workaround for what you want.
OCaml Formatting numbers with thousand separators
Unfortunately, nothing, expect that you can use the %a
format specifier and provide your own pretty-printer.
Related Topics
Css Transform Doesn't Work on Inline Elements
Bootstrap Align Navbar Items to the Right
How to Disable Margin-Collapsing
Bootstrap Navbar With Left, Center or Right Aligned Items
What Does the CSS Rule "Clear: Both" Do
How to Center Floated Elements
How to Combine a Background-Image and Css3 Gradient on the Same Element
In Rc.1 Some Styles Can't Be Added Using Binding Syntax
Use Css3 Transitions With Gradient Backgrounds
Is There a CSS Selector For Text Nodes
What Do Commas and Spaces in Multiple Classes Mean in Css
Difference Between Display: Inline and Display: Inline-Block
Fixed Position But Relative to Container
Set Opacity of Background Image Without Affecting Child Elements