[thelist] CSS Equivalent for cellspacing, cellpadding and border

ben morrison morrison.ben at gmail.com
Tue Jan 24 11:48:52 CST 2006


 Does anyone know a
> backward compatible way to move cellspacing, cellpadding and border
> attributes in table into CSS?

Im not sure bout IE 4 as I dont have a copy on my machine.

For tables you can use

table,td,th{
	border:none;
	border-collapse:collapse;
	margin:0;
	padding:0;
}


Chris Heilmann has a whole site dedicated to table styles with CSS :

http://icant.co.uk/csstablegallery/index.php?css=2

HTH ben



More information about the thelist mailing list