Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Words crashing together in Firefox

Words crashing together in Firefox
Thread Tools
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status: Offline
Reply With Quote
Jul 11, 2006, 01:36 AM
 
Working on a site, I have a paragraph of text, formatted with CSS, and certain words from this paragraph further highlighted using a span class element (I'm just changing the color and the weight to bold). This works fine in Safari, Opera, IE:Mac, but not in Firefox (Camino too... so I assume all Gecko browsers). In Firefox, these words are crashing up against the word to their left, so that the first and last letters (respectively) are overlapping slightly. Is it a font issue? But why not in other browsers, where font rendering is otherwise identical? How do I fix it?

Here's a screenshot:
Mac OS X 10.5.0, Mac Pro 2.66GHz/2 GB RAM/X1900 XT, 23" ACD
esdesign
     
Moderator
Join Date: Jun 2000
Location: We come from the land of the ice and snow...
Status: Offline
Reply With Quote
Jul 11, 2006, 11:35 AM
 
I've had problems with fonts in firefox. Mostly with filling in form fields (like this one) but also on some pages. Have no idea on a fix though.
     
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Jul 11, 2006, 07:17 PM
 
It's a Mozilla bug, and it's very irritating.

I've been able to skirt it be adjusting the font sizes. That is instead of your span being .9em, make it .88em or whatever works.
     
Apfhex  (op)
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status: Offline
Reply With Quote
Jul 11, 2006, 07:39 PM
 
Thanks, I might give that a try.

It appears to be limited to OS X, and doesn't happen at all if a different font is used (that is, if the user doesn't have Myriad and it defaults to one of the common sans-serif fonts I have specified), so I guess I can live with it.
Mac OS X 10.5.0, Mac Pro 2.66GHz/2 GB RAM/X1900 XT, 23" ACD
esdesign
     
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Jul 12, 2006, 06:12 AM
 
For me it only happens in Helvetica, and on my machine. I haven't been able to reproduce it on other people's machines ever before.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:53 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2