background-color:"9E0039" works in IE but not mozilla, solution?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

background-color:"9E0039" works in IE but not mozilla, solution?

 
0
  #1
Nov 7th, 2007
Hi
This is Umang...

i m using background-color:"9E0039" in a stylesheet.css file
it is working in IE but not working in Mozilla fire fox. if i use the color name (eg. GREEN) instead of color code (eg. 9E0039) it works in Mozilla fire fox also. What should i do so that color code also work in Mozilla fire fox???
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 224
Reputation: bugmenot is an unknown quantity at this point 
Solved Threads: 31
bugmenot bugmenot is offline Offline
Posting Whiz in Training

Re: background-color:"9E0039" works in IE but not mozilla, solution?

 
0
  #2
Nov 7th, 2007
If that is your actual code it should be background-color:#9E0039;

Change it to that and it should be kosher.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: background-color:"9E0039" works in IE but not mozilla, solution?

 
0
  #3
Nov 7th, 2007
never use quotes in CSS unless you are combining words, like a font-famiily: "Times New Roman". And for colors, you should always [put the # before it (#9E0039). So yes, change it to bugmenot's suggestion
background-color:#9E0039;
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC