[thelist] PAGE OPTIMIZATION: source readability v. download weight
James Aylard
evolt at pixelwright.com
Wed Jun 12 17:21:00 CDT 2002
Chris,
> although i do try to use CSS as much as i can (i.e. not for placement of
> items, but rather how they look) there are some things that i don't know
> how to do with css that can easily be done with html. specifically
> cellspacing="0" and cellpadding="0". what is the css equivalent if any?
For zero values, use:
table {
border-collapse: collapse ; /* IE 5+, Mozilla */
padding: 0px ;
}
If you want to adjust the cellspacing to a value other than zero using
CSS, you are out of luck with IE/Win32. However, with browsers that support
the border-spacing property (which IE/Win32 does not), you could use this:
table {
border-collapse: separate ; /* IE 5+ */
border-spacing: 3px ; /* Unsupported in IE/Win32 */
padding: 0px ;
}
James Aylard
More information about the thelist
mailing list