D
D
developerrr2015-10-28 14:35:11
css
developerrr, 2015-10-28 14:35:11

How to make the cents be in a smaller font?

Can you tell me how to make the numbers appear like this?
That is, so that the numbers after the dot have slightly different formatting?
etSMz4mg.png
Moreover, I receive data in the form of 100000, and already this library openexchangerates.github.io/accounting.js
converts the data into this format 100,000.00

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
holfza, 2015-10-28
@holfza

jsfiddle.net/ruoknfhk

I
Ivan Drozhzhin, 2015-10-29
@RotarYMonkeY

If it is possible to wrap the last digits in a block, for example , then you can style them to a smaller size.

P
Pavel Radkov, 2015-10-29
@paulradzkov

Here is a plugin https://github.com/up101/digitCapacity that wraps the dot and the digits after it in a span.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question