At long last, I've managed to figure out how to emulate the HTML cellspacing attribute in CSS. So I thought that I'd post it here so everyone can use it.
Just add the cellspacing class to a table tag and it creates a white 3px border between each column throughout the table.
It's a shame the CSS designers haven't made this easier by having a proper built-in cellspacing attribute, but until they do, this is the next best thing, I guess.
Enjoy.
Debbie
__________________ QuicknEasySalesPro.com - your quick and easy, yet powerful solution for managing your membership site sales, downloads and affiliates.
No, not advertising, just giving something back to all the forums (fora?) that I've used over the years.
It may not work with some older versions of some browsers, though, because the :last-child pseudo class has only just become supported in some of them, which I guess is why it's only now that I've be able to find this solution.
Debbie
__________________ QuicknEasySalesPro.com - your quick and easy, yet powerful solution for managing your membership site sales, downloads and affiliates.
No, not advertising, just giving something back to all the forums (fora?) that I've used over the years.
It may not work with some older versions of some browsers, though, because the :last-child pseudo class has only just become supported in some of them, which I guess is why it's only now that I've be able to find this solution.
Debbie
that's good to hear. i just can't stand when i spend my time reading a post and find it's commercial. there's a fine line between a post like this and commercial use. I just hope that line stays 1px solid.
Yep, tried it, but it only produces a border around the table, not between cells in the same way that cellspacing does. That's one reason why I ended up with this solution.
There may be other ways to achieve the same effect, but this is the one I've found that works, so I thought I'd share it, so others who have also been tearing their hair out don't have to anymore.
Debbie
__________________ QuicknEasySalesPro.com - your quick and easy, yet powerful solution for managing your membership site sales, downloads and affiliates.
Yep, tried it, but it only produces a border around the table, not between cells in the same way that cellspacing does.
That can’t be true. In which browser (and version) have you experienced this? Look again at the link I provided above. The cells displayed there are all separate for me in Firefox 5.