J E E N A R J U N Posted on Jan 29, 2020 How to adjust the font size based on the content (which is a number and string) in a container? #react #javascript #css #beginners How to adjust the font size based on the content (which is a number and string) in a container? Jan 29 '20 Comments: 2 Answers: 1 0 I am having a container which takes in the amount and the currency. As the amount gets bigger and reaches near to the right padding (i.e., 16px), the font size should be reducing. At the same time the top padding of the currency should also change. https://jsfiddle.net/jmjjeena/uzsL7n0c/ //////////////// REACT /////////////////… Open Full Question Top comments (0) Crown Sort discussion: Selected Sort Option Top Most upvoted and relevant comments will be first Latest Most recent comments will be first Oldest The oldest comments will be first Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)