I tried to come up with a way to change the font size when resizing the parent element. Most likely, this is due to resizing the browser. For example, when I reduce my Chrome, the font will become smaller, and vice versa.
I was thinking about media queries, but that also didn't match what I definitely want. Media queries are great for discovering which device is being used, and thatβs all, but not the way I want. I thought the answer lay in some kind of JavaScript, but if there was an answer that uses CSS, I would prefer that. I did some research, but could not find what I wanted.
source share