November 8, 200817 yr Hello Members, Under giving is my css. --------------------------------------------------------------------------------------------------------- .redtitle {float : left;text-align : left;font : bold 12px/30px Verdana, Arial, Helvetica, sans-serif;color: #ff0000;} --------------------------------------------------------------------------------------------------------- .leftmenu {font : normal 12px Verdana, Arial, Helvetica, sans-serif;color : #000;text-align : left;display : block;} When I do the validation in W3C its give me a warning like "You have no background-color set (or background-color is set to transparent) but you have set a color. Make sure that cascading of colors keeps the text reasonably legible." Can any one help me to solve this warning? Thanks in advance, Shirish http://www.ominfosoft.com
November 9, 200817 yr It's basically just saying that although you've set a colour for the text, you haven't got any background colour set. This could lead to the text being illegible, so it's advising that you set a background colour so that you have control over what colour the text is displayed against. Easiest fix would be to add this to the body style: body { background: #fff; } That'll set the background to white.
November 9, 200817 yr An option when there is a background image or background changes is to use background: inherit; Can use this in the above classes. W3C value-def-inherit
November 10, 200817 yr Author Thank you for replying me, and give effective tips. Thanks, Shirish http://www.ominfosoft.com It's basically just saying that although you've set a colour for the text, you haven't got any background colour set. This could lead to the text being illegible, so it's advising that you set a background colour so that you have control over what colour the text is displayed against. Easiest fix would be to add this to the body style: body { background: #fff; } That'll set the background to white.
November 10, 200817 yr Author Thanks for replying me and giving me a effective tips. Thanks, Shirish, http://www.ominfosoft.com An option when there is a background image or background changes is to use background: inherit;Can use this in the above classes. W3C value-def-inherit
Create an account or sign in to comment