D
D
Dvorak2016-03-31 12:30:26
css
Dvorak, 2016-03-31 12:30:26

How to properly adapt such a block?

codepen.io/anon/pen/KzvYRW
How to properly adapt the block so that large and small texts are always displayed on one line? I tried using media, but then it turns out that you need to reduce the font every 100px. I don't feel like writing media 10 times for one block. How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Damir Aushenov, 2016-03-31
@allishappy

font-size: 2vw;
Viewport Sized Typography

A
amf1k, 2016-03-31
@amf1k

read about relative units (em and rem) and use them for font-size

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question