Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Auto Adjust Font Size to fit div #5

Open
utterances-bot opened this issue Jul 13, 2021 · 2 comments
Open

How to Auto Adjust Font Size to fit div #5

utterances-bot opened this issue Jul 13, 2021 · 2 comments

Comments

@utterances-bot
Copy link

How to Auto Adjust Font Size to fit div

https://gabriellazcano.com/blog/how-to-auto-adjust-font-size-to-fit-div/

Copy link
Owner

As pointed out by u/Rhym on Reddit there's also a way of implementing this with SASS. https://css-tricks.com/snippets/css/fluid-typography/ You can check it out and see if it fits your requirements

Copy link
Owner

Further optimizations need to be done for this to be production ready. As mentioned by u/wickning 1 a binary search could be implemented for finding the correct font-size. Thanks for pointing it out 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants