A
A
a16a2017-02-01 08:15:53
css
a16a, 2017-02-01 08:15:53

How to write text on img?

Hello. How to write over the numbers on such badges? (Picture attached)
To be in the center and possibly with animation, as in many sites, when after scrolling to this screen the counter spins to these numbers.
561a776b94a94d4a892c08bb71d8c581.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Zhivagin, 2017-02-01
@Krasnodar_etc

<p class='class'>10</p>
css

.col-lg-2 { position: relative; }
.class { position: absolute; top: 40px; left: 40px; transform: translate (-50%, -50%); }

Class names are better to set your own, of course.
PS - I forgot. For .class set margin-bottom to zero

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question