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
Apfhex
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status: Offline
Reply With Quote
Jul 11, 2006, 02: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
     
andi*pandi
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Online
Reply With Quote
Jul 11, 2006, 12:35 PM
 
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.
     
registered_user
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Jul 11, 2006, 08: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, 08: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
     
registered_user
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Jul 12, 2006, 07: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.
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 08:05 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,