How to Dynamically resize font size when browser size changes.
How can I change my text or font size when the user changes the browser size.
Example: When the browser is maximized, the font goes to normal, when the browser window decreased, the font size is reduce.
I don't know offhand, but this sounds like a really, really bad idea. People don't expect the text size to change as they change the browser window. They make windows bigger so they can see more of your page, and smaller if they need more room on their monitor for other things.
I completely understand, this is not for a real world project.
Originally Posted by tracknut
Just a practice (knowledge) project!
If I was making an actual real world project, I'll add buttons to let the user increase or decrease the text size according to their liking.
fontSize = parseInt(window width / constant) +'px'
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)