CSS validation warning: same colors for color and background in two contexts

I get a ton of warnings similar to the ones listed below when I do CSS validation validation through http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.gamefriction.com%2FCoded&profile = css21 & usermedium = all & warning = 1 & lang = en

> 513       Same colors for color and
> background-color in two contexts
> #blue_module and #red_module_top 513      Same colors for color and
> background-color in two contexts
> .content ul li and #red_module_top 513
>       Same colors for color and
> background-color in two contexts
> #footer_container and #red_module_top 513         Same colors for color and
> background-color in two contexts
> ul.tabs li a.active and
> #red_module_top 513       Same colors for color and background-color in two
> contexts #content_960 and
> #red_module_top 513       Same colors for color and background-color in two
> contexts #content_main and
> #red_module_top 513       Same colors for color and background-color in two
> contexts .content and #red_module_top
> 513       Same colors for color and
> background-color in two contexts
> #league_module select option and #red_module_top 513      Same colors for color and background-color in two
> contexts #red_module and
> #red_module_top

Any ideas how to fix this?

CSS file: gamefriction.com/Coded/css/style.css

+3
source share
2 answers

They say that in some contexts you have the same background color and foreground color. An example from your CSS (some declarations are omitted for clarity):

#red_module_top {
  background: url(http://www.gamefriction.com/Coded/images/red_content_top.jpg) no-repeat;
  color: #fff;
}

, color: #fff. , . . , - , ( , , ), .

, . :

background: #ff0000 url(http://www.gamefriction.com/Coded/images/red_content_top.jpg) no-repeat;

, , , .

+2

, . , .

0

Source: https://habr.com/ru/post/1744546/


All Articles