I try to validate my CSS code. I have no errors, only warning, but i dont like it.
I have 100 warnings, like this ones:
45 Same colors for color and background-color in two contexts #search and div.main_text
45 Same colors for color and background-color in two contexts div.testinput and div.main_text
45 Same colors for color and background-color in two contexts #submit and div.main_text
221 Same colors for color and background-color in two contexts div.test input and #index_be
221 Same colors for color and background-color in two contexts #login_submit and
div.main_text {
color: #a3986d;
}
#search {
background-color:#a3986d;
}
What should I do with this?
Ignore it. Provided you never have HTML like this:
you’ll be fine. If you do have markup like that, then the contents of the
divwith classmain_textwill have a background colour of#a3986dand a foreground colour of#a3986d, so text won’t show up.The fact that there is such a combination isn’t a problem, unless you use that combination.