Forum Moderators: not2easy
I am in the process of developing a website and, now that I have reached the end (almost), I decided to fully make use of CSS styles.
So, I've tried defining this style:
[pre]
TABLE /* table general definitions */
{
border-spacing: 0.25em 0;
border-collapse: collapse;
}[/pre] ... and I've taken all the following properties from within every TABLE tag:
[pre]
border="0" cellspacing="0" cellpadding="0"
[/pre] However my rendered page under Internet Explorer 6 -- the only browser I use -- isn't displayed properly!
Is there an issue I am not aware of?
For one thing, the details about border-spacing are included in the section talking about border-collapse:seperate. Spacing is not mentioned at all in the collapsing borders model description. Rather that section discusses a need to define each border for different cells using the regular border properties.
But mostly I say this because of this quote about the Sperate border model ...
In this model [border-collapse:seperate], each cell has an individual border. The 'border-spacing' property specifies the distance between the borders of adjoining cells.
But in the Collapsing borders model, the borders are not seperate for each cell, and so applying spacing between them doesn't accomplish anything.
My point: try border-collapse:seperate, instead.
I decided to fully make use of CSS styles
...
Internet Explorer 6 -- the only browser I use
I think you will find that these two statements are mutually exclusive. You really cannot make full use of CSS if the only browser you use is IE. And I don't mean that you won't enjoy the benefits as a user (although that's true); I mean that as a designer you cannot hope to get a clear picture of how and why CSS works the way it does if you are using and testing it exclusively in the most hostile CSS environment ever made.
I would strongly recommend that you download and install FireFox, if only for testing/designing/css-ing purposes. Test all of your CSS in FF first, then once it's behaving there, load it into IE and make whatever hacks, tweaks or conditional changes are necessary to get it looking presentable in IE.
cEM
gives me the impression that border-spacing does not couple with border-collapse:collapse.
Why?!
I would strongly recommend that you download and install FireFox, if only for testing/designing/css-ing purposes. Test all of your CSS in FF first, then once it's behaving there, load it into IE and make whatever hacks, tweaks or conditional changes are necessary to get it looking presentable in IE.
Thank you very much for the insights!
- Dave
I'm not certain, but that may be what you are looking for. I have a page I'm re-designing with CSS that uses nested tables for page layout, and I had to specify padding:0 in both the <table> rule and the <td> rule to override the default cellpadding.