CSS - Table border, padding and TD border all different colors
Posted on 2006-05-23
I have a one cell Table, in which I want the border to be 1 px black, then a grey padded area inside that up to the TD, which needs to have a 1 px blue border. So from outside to inside it goes like this --
1px black Table border - 5px gray table background - 1px blue TD border - light blue TD background
I can do this easily with nested tables, but want to do with CSS only, and having trouble getting it right.
Please use table.Tclick and TD.Dclick as the classes. Show me the CSS and HTML code to do this simply. Thanks