Z
Z
ZaharLesniak2022-02-21 20:17:28
css
ZaharLesniak, 2022-02-21 20:17:28

How can I measure the width of an object, show it on the site (in pixels) and change the width of the object dynamically?

I need to implement so that the width and height of the text are displayed on the site 6213c8e7e578b655900325.png. How can I do this so that when the text size changes, the height and width on the site dynamically change?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2022-02-21
@ThunderCat

I need to implement so that the width and height of the text are displayed on the site
https://stackoverflow.com/questions/118241/calcula...
How can I do this so that when the text size changes, the height and width on the site dynamically change?
https://css-tricks.com/fitting-text-to-a-container/ or if you type this text and it changes from this - call recalculation by onkeyup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question