Submit Your Article Forum Rules

Results 1 to 9 of 9

Thread: CSS Font Color Rendering Problem

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    3

    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.

  2. #2
    Senior Member ran_dizolph's Avatar
    Join Date
    Jul 2005
    Posts
    561

    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.

  3. #3
    WebProWorld MVP Dubbya's Avatar
    Join Date
    Nov 2006
    Location
    Steinbach, Manitoba
    Posts
    1,323

    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>

  4. #4
    Junior Member
    Join Date
    Mar 2008
    Posts
    3

    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.

  5. #5
    Member
    Join Date
    Mar 2007
    Posts
    46

    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

  6. #6
    WebProWorld MVP Orion's Avatar
    Join Date
    Sep 2003
    Posts
    716

    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.
    Ron Boyd
    website consulting - design • optimization • marketing • [url=http://owhosting.com]Hosting[url] :: Follow Me: @boydrw

  7. #7
    Senior Member DrTandem1's Avatar
    Join Date
    Oct 2003
    Posts
    1,828

    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

  8. #8
    Junior Member
    Join Date
    Mar 2008
    Posts
    3

    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.

  9. #9
    Member
    Join Date
    Nov 2007
    Posts
    38

    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

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •