C
C
Coder 14482020-05-12 09:40:17
css
Coder 1448, 2020-05-12 09:40:17

How to do it: if the text does not fit the width of the block and wraps to another line, then reduce the size of the text so that it fits on one line?

If the text does not fit the width of the block and wraps to another line, then reduce the text size so that it fits on one line. Can you explain the code what's what?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Emran Begov, 2020-05-12
@Emran

One of these css properties will make the text rubbery

font-size: 5vmax; 
font-size: 3vw;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question