WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox 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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2008, 02:35 PM
adachi adachi is offline
WebProWorld New Member
 

Join Date: Mar 2008
Posts: 2
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 03:38 PM. Reason: remove link from copy and paste to same post elsewhere
Reply With Quote
  #2 (permalink)  
Old 03-26-2008, 03:32 PM
ran_dizolph's Avatar
ran_dizolph ran_dizolph is offline
WebProWorld Veteran
 

Join Date: Jul 2005
Location: Windsor, ON
Posts: 459
ran_dizolph RepRank 1
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, 04:02 PM
Dubbya's Avatar
Dubbya Dubbya is offline
WebProWorld Veteran
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 982
Dubbya RepRank 3Dubbya RepRank 3
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>
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca
Reply With Quote
  #4 (permalink)  
Old 03-26-2008, 04:05 PM
adachi adachi is offline
WebProWorld New Member
 

Join Date: Mar 2008
Posts: 2
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, 04:29 PM
DrayScherm DrayScherm is offline
WebProWorld New Member
 

Join Date: Mar 2007
Location: Cobourg Ontario
Posts: 19
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, 04:42 PM
Orion's Avatar
Orion Orion is offline
WebProWorld Veteran
 

Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 526
Orion RepRank 2
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.
__________________
Ron Boyd
Web design & site management :: Ron's blog
Reply With Quote
  #7 (permalink)  
Old 03-27-2008, 08:28 PM
DrTandem1's Avatar
DrTandem1 DrTandem1 is offline
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
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
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

vB 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 03:00 AM
Problem with Arial Font on PC dharrison IT Discussion Forum 1 02-10-2006 06:28 AM
problem with font and font sizes... jdyndale Accessibility and Usability Forum 5 01-20-2006 05:39 AM
MSIE 6 Font Problem webmasterjunkie IT Discussion Forum 2 05-05-2005 02:07 PM
A Font Color Problem: www.victorian-music.com Najoba Graphics & Design Discussion Forum 7 11-10-2004 06:16 PM


Search Engine Friendly URLs by vBSEO 3.0.0