Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

icoltro

na validação de CSS

Recommended Posts

Olá pessoal. Sou novato aqui e novato em CSS tb. Estou tentando validar meu site. O XHTML está ok.Quando verifico a validação, ele dá o seguinte erro

Line : 8 (Level : 1) You have no background-color with your color : div Line : 8 (Level : 1) You have no background-color with your color : div Line : 8 (Level : 1) You have no background-color with your color : div Line : 11 (Level : 1) You have no color with your background-color : hr Line : 38 (Level : 1) You have no color with your background-color : #mainlevel-nav a:hover Line : 43 (Level : 1) You have no background-color with your color : .newsflash td Line : 51 (Level : 1) You have no background-color with your color : .mainpage Line : 61 (Level : 1) You have no color with your background-color : .greybg Line : 71 (Level : 1) You have no background-color with your color : a.pathway:visited Line : 71 (Level : 1) You have no background-color with your color : a.pathway:visited Line : 76 (Level : 1) You have no background-color with your color : a.pathway:hover Line : 86 (Level : 1) You have no background-color with your color : .title Line : 95 (Level : 1) You have no background-color with your color : .subtitle Line : 102 (Level : 1) You have no background-color with your color : #active_menu Line : 109 (Level : 1) You have no background-color with your color : a.mainlevel:visited Line : 109 (Level : 1) You have no background-color with your color : a.mainlevel:visited Line : 121 (Level : 1) You have no background-color with your color : a.mainlevel:hover Line : 125 (Level : 1) You have no background-color with your color : a.mainmenu:visited Line : 125 (Level : 1) You have no background-color with your color : a.mainmenu:visited Line : 132 (Level : 1) You have no background-color with your color : a.mainmenu:hover Line : 143 (Level : 1) You have no background-color with your color : a.sublevel:visited Line : 143 (Level : 1) Same colors for color and background-color in two contexts #mainlevel-nav a:hover and a.sublevel:visited Line : 143 (Level : 1) Same colors for color and background-color in two contexts #mainlevel-nav a:hover and a.sublevel:visited Line : 143 (Level : 1) You have no background-color with your color : a.sublevel:visited Line : 149 (Level : 1) You have no background-color with your color : a.sublevel:hover Line : 162 (Level : 1) You have no background-color with your color : table.moduletable th Line : 184 (Level : 1) You have no background-color with your color : .poll Line : 199 (Level : 1) You have no color with your background-color : .sectiontableentry1 Line : 203 (Level : 1) You have no color with your background-color : .sectiontableentry2 Line : 209 (Level : 1) You have no background-color with your color : .small Line : 209 (Level : 1) Same colors for color and background-color in two contexts hr and .small Line : 217 (Level : 1) You have no background-color with your color : .smalldark Line : 224 (Level : 1) You have no color with your background-color : .contentpane Line : 237 (Level : 1) You have no background-color with your color : .componentheading Line : 237 (Level : 1) You have no background-color with your color : .componentheading Line : 244 (Level : 1) Same colors for color and background-color in two contexts hr and .createdate Line : 244 (Level : 1) You have no background-color with your color : .createdate Line : 268 (Level : 1) You have no background-color with your color : a:visited Line : 268 (Level : 1) Same colors for color and background-color in two contexts #mainlevel-nav a:hover and a:visited Line : 268 (Level : 1) You have no background-color with your color : a:visited Line : 268 (Level : 1) Same colors for color and background-color in two contexts #mainlevel-nav a:hover and a:visited Line : 273 (Level : 1) You have no background-color with your color : a:hover Line : 282 (Level : 1) You have no background-color with your color : a.contentpagetitle:visited Line : 282 (Level : 1) You have no background-color with your color : a.contentpagetitle:visited Line : 292 (Level : 1) You have no background-color with your color : a.contentpagetitle:hover Line : 294 (Level : 2) Redefinition of font-weight : a.contentpagetitle:hover Line : 298 (Level : 1) You have no background-color with your color : a.category:visited Line : 298 (Level : 1) You have no background-color with your color : a.category:visited Line : 301 (Level : 2) Redefinition of font-weight : a.category:link Line : 301 (Level : 2) Redefinition of font-weight : a.category:visited Line : 305 (Level : 1) Same colors for color and background-color in two contexts hr and a.category:hover Line : 305 (Level : 1) You have no background-color with your color : a.category:hover Line : 322 (Level : 1) You have no color with your background-color : .offtab Line : 336 (Level : 1) You have no color with your background-color : .tabheading Line : 349 (Level : 1) You have no color with your background-color : .moscode Line : 352 (Level : 1) You have no color with your background-color : .code Line : 361 (Level : 1) You have no background-color with your color : .message Line : 361 (Level : 1) Same colors for color and background-color in two contexts #mainlevel-nav a:hover and .message

Ao que tudo indica, são parecidos, porém não sei resolver.tr, p, div { font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 11px; color : #333333; <<--- Linha 8hr { background : #999999; <<-- Linha 11 height : 1px; width : 100%;}Se alguém puder me ajudar, ficarei muito grato.Valeu http://forum.imasters.com.br/public/style_emoticons/default/joia.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tive o mesmo problema e depois de fuçar bastante descobri q eh apenas um alerta para a igualdade da cor de fundo com a do texto.Vamos supor que um usúario coloque a letra #000 ou seja preta, se o fundo definido em seu css for de cor escura, vai aparecer o alerta avisando o possivel erro de acessibilidade.Ou se a cor do fundo definido pelo usário seja escuro, e a cor de fonte seja clara...eh apenas isso hehehehepenei mas descobri huahauhaabs^^CAV

Compartilhar este post


Link para o post
Compartilhar em outros sites

É uma questão de contraste... tudo para facilitar a leitura e compreensão do usuários, em especial aqueles que sofrem de algum problema de visão.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.