S
S
smoklew2015-09-23 13:20:41
css
smoklew, 2015-09-23 13:20:41

Text size dependent on block width?

How and is it possible to do so that when the block width decreases, the text size decreases and does not go beyond this block?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Ineshin, 2015-09-23
@IonDen

You can't do it with CSS. It is possible to count only indirectly on JS on the timer.
UPD. Jumps can be partially implemented on Media queries. But these will be only a few predetermined sizes.

A
Alexander Zachinalov, 2015-09-23
@SanDiesel

1kB plugin https://github.com/davatron5000/FitText.js
Which browsers support it, I can't answer, I haven't tried it myself. The git docs have links to a version without jQuery, as well as to forks of the project with added functionality (similar functionality). You can also look for similar ones.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question