Discussion Locked

Browser text size

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know of a script that detects a browser and sets a text size for the browser? I am building a text heavy site that looks great in IE but crappy in Netscape. It may seem like a silly question but I have not heard of a solution yet and have been building sites that avoid this old problem.

1 reply

by jay eckles

My first piece of advice would be to make sure you're using Cascading Style Sheets to style the text (set its font face, style, weight, and size). It may sound obvious (or it may not) - many people still use font tags. It will be SO much easier tomake changes to the design of the site using CSS, especially if it's "text heavy" as you say.

Assuming that for some reason intelligent styles in ems or %s isn't working for you in both browsers, you could use some browser-sniffing javascript. Then based on what the Javascript tells you, you could load a different stylesheet. Make sure you have a default stylesheet for two situations: 1. the browser does not have Javascript enabled; 2. the Javascript cannot determine what browser is being used.

If you need help writing the Javascript, let me know by email and we can talk.

Good luck.

Jay
www.jayeckles.com

This discussion is closed to new replies.