A forum for, well, anything really.
Gripes, moans, ideas or just general chit chat. EXCEPT SPAM!!! - Don't just register to post here - IT WILL GET DELETED!!!
Not a Milonic issue but seeing as how the support on here is so good I thought I'd thrown in a little issue I have.
What with all these new rules from the UK Disability Rights Commission hassling web designers to make their sites fully compliant, we thought we'd couple this in with a revamp of our website.
But there is one bit of code which is coming up invalid. The error is:
Line 42, column 29: there is no attribute "BACKGROUND" (explain...).
<TD background="../images/g_04.gif"></TD>
This image is the left hand side of a box. The odd thing is that the right hand side parses ok. The code is as follows:
Not 100% sure, but background may be a depreciated attribute in HTML 4.0, in favor of controlling such things through CSS. Are you specifying a doctype?... that might make a difference.
Yes, you should look into CSS. Below are two example that produce similar results, the first table without CSS and the second with CSS. http://validator.w3.org/ gripes about the background attribute on the <td>, because it is indeed deprecated. I didn't try but you could probably set your DOCTYPE to something like 3.2, and the warning would dissapear.