
Signature
-----------------------------------------------------------------------------
To further the education of mankind, phil-news-nospam@ipal.net
vouchsafed:
> I had been trying to do it with the marging setting and that was not
> having any effect. However, I tried it with the padding setting and
[quoted text clipped - 6 lines]
> edges of the table. HTML seems to force 2 pixels there unless I do
> cellspacing=0 in the HTML on the table element.
With what you have, try this (in styles section):
table {
border-collapse:separate;
border-spacing:0px;
}
Bear in mind it doesn't work with IE6 but neither does first-child.

Signature
Neredbojias
Infinity has its limits.
>|>28 Apr 2006 22:41:33 GMT from <phil-news-nospam@ipal.net>:
>|>> I have a table with 3 columns in 1 row. I want to increase the spacing
[quoted text clipped - 24 lines]
>I had been trying to do it with the marging setting and that was not having
>any effect.
Table cells don't have margins.
> However, I tried it with the padding setting and it seems to
>be working now.
Ah. I assumed that you had visible borders on your table cells and
wanted the space between the borders (i.e. the CSS border-spacing
property) to be variable. IF you have no borders then padding will
allow you to do everything you want.
>td { padding-left: 24px; }
>td:first-child { padding-left: 0px; }
You'll need to add a class to the first cell to cope with IE's
non-support of the :first-child pseudoclass.
>But I still need to find a way to sequeeze the extra space off the edges
>of the table. HTML seems to force 2 pixels there unless I do cellspacing=0
>in the HTML on the table element.
That would be the browser's default cellpadding/border-spacing (the
two are largely analogous). Setting it to zero in CSS in IE is done by
setting border-collapse: collapse (yes even if you have no borders).
Setting it to non zero values in CSS in IE is trickier.
Steve

Signature
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
phil-news-nospam@ipal.net - 30 Apr 2006 17:12 GMT
|>|>28 Apr 2006 22:41:33 GMT from <phil-news-nospam@ipal.net>:
|>|>> I have a table with 3 columns in 1 row. I want to increase the spacing
[quoted text clipped - 26 lines]
|
| Table cells don't have margins.
No, but it would have been a way to do it if they had.
|> However, I tried it with the padding setting and it seems to
|>be working now.
[quoted text clipped - 9 lines]
| You'll need to add a class to the first cell to cope with IE's
| non-support of the :first-child pseudoclass.
I'm not going to worry about IE. I'll include a "Get Firefox" Icon/link.
|>But I still need to find a way to sequeeze the extra space off the edges
|>of the table. HTML seems to force 2 pixels there unless I do cellspacing=0
[quoted text clipped - 4 lines]
| setting border-collapse: collapse (yes even if you have no borders).
| Setting it to non zero values in CSS in IE is trickier.
And Firefox? Or are you just doing IE?

Signature
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
Steve Pugh - 30 Apr 2006 18:40 GMT
>|>td { padding-left: 24px; }
>|>td:first-child { padding-left: 0px; }
[quoted text clipped - 3 lines]
>
>I'm not going to worry about IE. I'll include a "Get Firefox" Icon/link.
Or just let IE users have a slightly different presentation (not as
good in your eyes but as no one else is likely to see it in more than
one browser, probably no one else will notice or care). Get Browser X
buttons are generally a waste of space and effort.
>|>But I still need to find a way to sequeeze the extra space off the edges
>|>of the table. HTML seems to force 2 pixels there unless I do cellspacing=0
[quoted text clipped - 6 lines]
>
>And Firefox? Or are you just doing IE?
FireFox, Opera, Safari, etc., etc. support border-spacing and hence
don't need extra mollycoddling.
In your case border-collapse: collapse will suffice for all browsers
as that automatically sets border-spacing to zero.
Steve

Signature
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>