Click to See Complete Forum and Search --> : comparison chart


comptech520
02-27-2006, 06:03 AM
With CSS and making a comparison chart, are tables legal?

Heres an example of what I have


<TD vAlign=center width=186 bgColor=#fafbfc height=26><FONT
face="Verdana, Arial, Helvetica, sans-serif" color=#666666
size=1>Full Color Options </FONT></TD>
<TD vAlign=center align=middle width=70 bgColor=#f2f5f8><IMG
height=1 src="spacer.gif" width=1></TD>
<TD vAlign=center align=middle width=68 bgColor=#e8eef4><IMG
height=16 src="checkmark.gif" width=25></TD>
<TD vAlign=center align=middle width=69 bgColor=#d7e2ed><IMG
height=16 src="checkmark.gif" width=25></TD>
<TD></TD>

David Harrison
02-27-2006, 06:39 AM
The only question you need to ask yourself is, "Am I using the markup appropriately?"

The answer to that depends, are you using a table to display tabular data? If not then you shouldn't be using a table, but if you are then it's fine.

A comparison chart sounds like it would need a table to display the data, but looking at the markup you posted, I don't actually see any data.

Spacer gif's and presentational markup are definately not CSS. Also, your images are missing alt attributes.

thewebman
02-27-2006, 07:53 AM
I agree with what David Harrison said. also, you might want to put quotes around the attributes like this: <td valign="center" width="186" bgcolor="#fafbfc" height="26"> and make sure everything is lowercase.