CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 29th, 2002, 08:18 PM
Pupeno Pupeno is offline
Give peace a chance.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Buenos Aires, Argentina
Posts: 83 Pupeno User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 39 sec
Reputation Power: 8
Send a message via ICQ to Pupeno Send a message via AIM to Pupeno Send a message via MSN to Pupeno Send a message via Yahoo to Pupeno
Question css warning

Can anybody explain me this css warnings ?
* Line : 20 Level : 1 You have no color with your background-color : .menu
* Line : 30 Level : 1 You have no color with your background-color : .langch
* Line : 42 Level : 1 You have no color with your background-color : .rightbar
* Line : 56 Level : 1 You have no color with your background-color : .contents
* Line : 152 Level : 1 You have no color with your background-color : .btmbtn

thank you

Reply With Quote
  #2  
Old March 29th, 2002, 08:28 PM
ecliptoid330 ecliptoid330 is offline
The Architect
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Orb-3
Posts: 16 ecliptoid330 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Might be able to help.
More details requested.
What causes you to get this message?

Reply With Quote
  #3  
Old March 29th, 2002, 08:43 PM
Pupeno Pupeno is offline
Give peace a chance.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Buenos Aires, Argentina
Posts: 83 Pupeno User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 39 sec
Reputation Power: 8
Send a message via ICQ to Pupeno Send a message via AIM to Pupeno Send a message via MSN to Pupeno Send a message via Yahoo to Pupeno
Exclamation


Reply With Quote
  #4  
Old March 29th, 2002, 09:28 PM
Confuzzled Confuzzled is offline
Idiota de la aldea
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 39 Confuzzled User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to Confuzzled
I believe that they are warnings for if you do not specify font color in your css:

* Line : 20 Level : 1 You have no color with your background-color : .menu

means no font color designation in the following portion of the example code

Code:
.menu {
background-color : #c4ffff; 
text-align : center; 
padding-top : 2px; 
padding-right : 2px; 
padding-bottom : 2px; 
padding-left : 2px; 
} 


That's just my take on it but I may be wrong because it's all speculation

Reply With Quote
  #5  
Old March 29th, 2002, 09:28 PM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 8
Common practice is to assign both a color to the text if you assign a custom background color. You didn't, so the validator issues the warning.

Its not an error though, since the document is valid. But some browsers may not inherit the base text color when you override with your .menu style. This may result in the text not being visible, depending on what the client's browser is set to for default text color. Basicaly, for ever background-color: #xxxxxx;, you should also have a color: #xxxxxx; statement, even if it reproduces a color that should have been inherited from the base style. Just safe css practice.

Reply With Quote
  #6  
Old March 29th, 2002, 09:29 PM
Confuzzled Confuzzled is offline
Idiota de la aldea
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 39 Confuzzled User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to Confuzzled
^^Rapid fire responses

Reply With Quote
  #7  
Old March 29th, 2002, 10:14 PM
ecliptoid330 ecliptoid330 is offline
The Architect
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Orb-3
Posts: 16 ecliptoid330 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I tend to agree with MJEggertson. If this is actually the case, then it is good CSS practice to assign values to the styles you set.

Reply With Quote
  #8  
Old March 29th, 2002, 10:18 PM
ecliptoid330 ecliptoid330 is offline
The Architect
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Orb-3
Posts: 16 ecliptoid330 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
On the other hand however, the usual default background-color is #ffffff. If you do not specify a color to be employed, whether it be for the background, or for the fonts used, or for anything else for that matter, the browser should automatically display the default color(s). With that in mind, i do not follow why you would recieve the message that you did/do. Interesting quandry.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css warning


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT