iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2008, 03:35 PM
WebProWorld New Member
 
Join Date: Mar 2008
Posts: 3
adachi RepRank 0
Default CSS Font Color Rendering Problem

The following code will not render the proper font color in Firefox or Netscape, but works fine in IE.

<p style="color:#9F4D21; font: bold 20px/1.5em verdana, sans-serif;">DON'T FORGET OUR EVENT ON</p>

If you lower the font size to 16px or lower it works fine.

<p style="color:#9F4D21; font: bold 16px/1.5em verdana, sans-serif;">DON'T FORGET OUR EVENT ON</p>

Anyone know what is going on or if there is a workaround?

Any help is greatly appreciated.

Last edited by crankydave; 03-26-2008 at 04:38 PM. Reason: remove link from copy and paste to same post elsewhere
Reply With Quote
  #2 (permalink)  
Old 03-26-2008, 04:32 PM
ran_dizolph's Avatar
WebProWorld Veteran
 
Join Date: Jul 2005
Location: Windsor, ON
Posts: 543
ran_dizolph RepRank 2
Default Re: CSS Font Color Rendering Problem

Perhaps take your font elements out of shorthand to see if it works properly...that's what i'd check first.
Reply With Quote
  #3 (permalink)  
Old 03-26-2008, 05:02 PM
Dubbya's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,298
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
Default Re: CSS Font Color Rendering Problem

Try changing the style to this:
Code:
<p style="color:#9F4D21; font: 20px/1.5em verdana, sans-serif; font-weight:bold;">DON'T FORGET OUR EVENT ON</p>
Reply With Quote
  #4 (permalink)  
Old 03-26-2008, 05:05 PM
WebProWorld New Member
 
Join Date: Mar 2008
Posts: 3
adachi RepRank 0
Default Re: CSS Font Color Rendering Problem

I've tried all variations, but for some reason going from 16 to 18px forces the color to change to blue only in Firefox and Netscape. If I use a different hex color then it will work in some instances, but certain colors ranges still change to blue.

The orange used in this instance goes with an overall marketing color pallete so I don't have an option to change it.
Reply With Quote
  #5 (permalink)  
Old 03-27-2008, 05:29 PM
WebProWorld Member
 
Join Date: Mar 2007
Location: Cobourg Ontario
Posts: 30
DrayScherm RepRank 1
Default Re: CSS Font Color Rendering Problem

I created this style in the head of the an html doc:

<style type="text/css">
<!--
.dontforget {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
color: #9F4D21;
}
-->
</style>

I then applied it to the text DON'T FORGET OUT EVENT ON with this code:

<body class="dontforget">

It worked fine in IE 6 and Firefox 2.0.0.12.

I did not include the /1.5 em which Dreamweaver told me was not supported syntax.

...Duane
__________________
---------
www.draydesign.com
Reply With Quote
  #6 (permalink)  
Old 03-27-2008, 05:42 PM
Orion's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 702
Orion RepRank 4Orion RepRank 4Orion RepRank 4Orion RepRank 4
Default Re: CSS Font Color Rendering Problem

doing it in long hand font-size:1.5em; should work just fine.. px should never be used for fonts. ems is the correct syntax for font size.
Reply With Quote
  #7 (permalink)  
Old 03-27-2008, 09:28 PM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 
Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,829
DrTandem1 RepRank 2
Default Re: CSS Font Color Rendering Problem

Both look the same in my browsers (a shade of brown). Maybe it's your monitor?
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #8 (permalink)  
Old 05-30-2008, 06:44 PM
WebProWorld New Member
 
Join Date: Mar 2008
Posts: 3
adachi RepRank 0
Default Re: CSS Font Color Rendering Problem

So finally figured it out. There is a bug with Firefox and Catalyst drivers which cause the font colors to render incorrectly.

Web site colors are wrong

Turning on Cleartype fixed it.
Reply With Quote
  #9 (permalink)  
Old 06-01-2008, 02:03 AM
WebProWorld Member
 
Join Date: Nov 2007
Posts: 40
PosterManiac RepRank 0
Default Re: CSS Font Color Rendering Problem

Quote:
Originally Posted by adachi View Post
So finally figured it out. There is a bug with Firefox and Catalyst drivers which cause the font colors to render incorrectly.

Web site colors are wrong

Turning on Cleartype fixed it.
Thats exactly what I was about to suggest . I had encountered this problem as well once. Had taken me a lot of googling before I found the solution
__________________
Banner software
Wanted poster
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link color problem ncriptide Graphics & Design Discussion Forum 6 02-01-2008 04:00 AM
Problem with Arial Font on PC dharrison IT Discussion Forum 1 02-10-2006 07:28 AM
problem with font and font sizes... jdyndale Accessibility and Usability Forum 5 01-20-2006 06:39 AM
MSIE 6 Font Problem webmasterjunkie IT Discussion Forum 2 05-05-2005 03:07 PM
A Font Color Problem: www.victorian-music.com Najoba Graphics & Design Discussion Forum 7 11-10-2004 07:16 PM


All times are GMT -4. The time now is 10:40 PM.



Search Engine Optimization by vBSEO 3.3.0