3 replies [Last post]
Rory
Offline
newbie
Last seen: 18 years 11 weeks ago
Joined: 2004-09-15
Posts: 2
Points: 0

I don't have access to a Sun workstation but I am told that on Sun with the Mozilla browser, my pages are showing with type about 5pt high, which is barely readable.

I am wondering if this is connected with defining font size in pixels, rather than points?

Here's what I am using:

a {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #005aa5; font-weight: normal; text-decoration: underline;}
td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: 000000; text-decoration: none}

Anybody have any idea? Also, if I change to defining font size in points, will that cause a problem with IE. Everything is working fine in IE right now and I don't want to break it.

Thanks in advance for any help.

co2
co2's picture
Offline
Leader
UK
Last seen: 14 years 33 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Problem with font size on Sun/Mozilla

Hmm, your specs are reasonable, so I would put this down to either the users preferences in Mozilla for the Sun workstation (remember, you can zoom pixel specified text-sizes in Mozilla, but not in IE). Either this or the default sans-serif on the Sun system is not up to the job (which I doubt).

Don't specify in points, this should only be reserved for print-based CSS. Using relative sizes could help, but you'd have to thoroughly test the outcome first.

A general spec would be to use something like font-size: 80%; in the body font declaration, and resize other instances elsewhere with ems.

You'd have to experiment.

I'd did an example page a while back for someone on this forum, but it's using pixels... I'll try and update it later with percentage values and resizing with em measurements.

Smile

The next sentence is true. The previous sentence is false. Discuss...

Rory
Offline
newbie
Last seen: 18 years 11 weeks ago
Joined: 2004-09-15
Posts: 2
Points: 0

Problem with font size on Sun/Mozilla

Thanks for the response. I'll see whether that is the problem.

co2
co2's picture
Offline
Leader
UK
Last seen: 14 years 33 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Problem with font size on Sun/Mozilla

The next sentence is true. The previous sentence is false. Discuss...