Is there a way to keep an end-user from changing font size on their end in a website? I noticed that when I'm in IE and I change the text size from Medium to Larger, it blows the look of our site way out of proportion. Here's the link to the site.
Jeffrey Koski wrote:
Is there a way to keep an end-user from changing font size on their end in a website?
No, and neither should there be.
End users should always have the ability to change their browser preferences to whatever font size they wish so they can read the web page. It's part of web design accessibility.
Even if you do set up clever code to fix the font size, in IE, Tools > Internet Options > Accessibility, "Ignore font sizes specified on web pages" means the code can be ignored so the user can tailor the web page to suit themselves for easy reading.
Your design needs to be flexible enough to accommodate any font size since you really have no idea how the end user will view the web page.
The CSS for the main page is specified in a fixed font size for body (14px) and #content (16px).
Disable the CSS font-size rules for those selectors or set IE Accessibility to ignore font sizes and the text size changes as expected.
Europe, Middle East and Africa