When I first created an all HTML/CSS website, I used clickable images as a menu that scaled perfectly on all monitors and browsers. Now, for my new project, I wanted to use a background image for the menu with hyperlinked text on top. I thought setting the font size in % would make it scale smoothly like everything else did, but it didn't work as expected.
I'm struggling to understand where the percentages for the text size are coming from. Even if I set a 100% font size in a div that is only 2% or 3% of the page's size, the text ends up too large or too small based on different resolutions.
I know how to make elements scalable based on browser window size, but I'm unsure how to adjust text size accordingly. If anyone can provide a solution using just CSS and HTML without involving scripts, I would greatly appreciate it. I prefer to stick to clickable images, percentages, or pixels for the entire design.
Thank you.