Jump to content

trouble with the 'cascade' in CSS


george

Recommended Posts

I have one style sheet for my site, wherein is the following code for tables:

table { border: 1px solid #000000;border-collapse:collapse;font-family:Arial, Helvetica, sans-serif; width:100%; }table caption { font-size:15px; font-weight:800; text-align:center; background-color:#ADADAD; border-top:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-bottom:1px solid #ADADAD; }table td { font-size:12px; font-weight:300; padding-left:5px; }table th { font-size:14px; font-weight:500; text-align:left; background-color:#ADADAD; font-variant:small-caps; border-top:1px solid #ADADAD; margin-left:2px; margin-right:2px;}

It works wonderfully - sometimes. Sometimes I want no border at all. So, for that particular table I write "border="0" in the table tag. The border still appears. What have I done wrong? Thanks

Link to comment
Share on other sites

HTML is only suppost to show structure, not presenation.
Thanks Ingolme. That solved one of the problems, and gave me a clue as to how to solve the others. I am posting "HTML is only suppost to show structure, not presenation." to my self support page.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...