Format numbers with css

Posted by Luc M on Pro Webmasters See other posts from Pro Webmasters or by Luc M
Published on 2011-06-25T01:38:20Z Indexed on 2011/06/25 8:31 UTC
Read the original article Hit count: 444

Filed under:

Is it possible to format numbers using css ?

When I have 7000000.00, I would like it displayed as 7 000 000.00

I know I could write a backend (php, perl...) function or a javascript function that could return the formatted number but...

The numbers that I want to format are into a cell. I would like to have something like

<td class="myformat">7000000.00</td>
or
<td><span class="myformat">7000000.00<span></td>

© Pro Webmasters or respective owner

Related posts about css