⬆️ ⬇️

We encode a ruble sign with HTML

Artemy Lebedev decided to introduce a new ruble sign (although he used to write that “rub.” Is correct), but did not say how to do this in practice.

- Insert a picture?



I propose to use the following simple code to create a ruble sign.

The coincidence is not 100%, as you can see, and for small sizes, you need to register in pixels and adjust line-height.

This is the HTML code:



<style>



.abso {position: absolute; font-size: 80%; line-height: 155%; }



</ style>

')

<span class = "abso"> = </ span> P



And this is the result with a different font size:











Source: www.paporotnik.com/?p=33

Source: https://habr.com/ru/post/12814/



All Articles