Forum Moderators: not2easy
Then came along doctype definitions (I use 4.01 Transitional) and I still used to include these default values. Now I am using CSS & stylesheets, but have so far stuck with what I know, and kept specifying these values.
Is it still necessary - if you are using a doctype and CSS stylesheets - to specify a table's cellspacing, cellpadding and border each and every time? Or is there a cross-browser compatible simpler way of doing it via the stylesheet?
border-collapse:collapse; to the table rule. However, if you want maximun cross-browser compatibility you should stick to using the cellpadding="0" cellspacing="0" - it remains valid for all HTML/XHTML versions including strict as those attributes are not really fully replaced by CSS.