User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,611 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,430 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 856 | Replies: 2
Reply
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

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

  #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???
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2006
Posts: 193
Reputation: bugmenot is on a distinguished road 
Rep Power: 2
Solved Threads: 27
bugmenot bugmenot is offline Offline
Junior Poster

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

  #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  
Join Date: Sep 2007
Posts: 1,058
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 7:20 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC