Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS equiv for cellspacing & cellpadding

Reply
Thread Tools

CSS equiv for cellspacing & cellpadding

 
 
Todd Cary
Guest
Posts: n/a
 
      09-16-2004
I have not been able to find the CSS equivalents to the table properties

cellspacing
cellpadding

I tried using

Table {
border-color: #FFFFFF;
background-color: #FFFFFF;
width: 100%;
border: 0;
padding: 0;
margin: 0;
}

but I still get spacing.

Todd
 
Reply With Quote
 
 
 
 
Jeffrey Silverman
Guest
Posts: n/a
 
      09-16-2004
On Thu, 16 Sep 2004 17:58:27 +0000, Todd Cary wrote:

> I have not been able to find the CSS equivalents to the table properties
>
> cellspacing
> cellpadding
>
> I tried using
>
> Table {
> border-color: #FFFFFF;
> background-color: #FFFFFF;
> width: 100%;
> border: 0;
> padding: 0;
> margin: 0;
> }
> }
> but I still get spacing.
>
> Todd


Try

padding:0px;

I think that will help. But it might not.
--
Jeffrey D. Silverman | **
Website | http://www.newtnotes.com

(** Drop "pants" to reply by email)

 
Reply With Quote
 
 
 
 
oo-
Guest
Posts: n/a
 
      09-16-2004

"Todd Cary" <> wrote in message
news:7vk2d.14029$...
>I have not been able to find the CSS equivalents to the table properties
>
> cellspacing
> cellpadding
>
> I tried using
>
> Table {
> border-color: #FFFFFF;
> background-color: #FFFFFF;
> width: 100%;
> border: 0;
> padding: 0;
> margin: 0;
> }
>
> but I still get spacing.
>
> Todd



try

table{
border-collapse: collapse;
}

yopu may have to apply this to the tds and ths e.g.

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

i think there is also a border-spacing attribute for which you can assign
the value of 0 or none but I'm not sure of its effectiveness.

Phil


 
Reply With Quote
 
Todd Cary
Guest
Posts: n/a
 
      09-16-2004
Phil -

border-collapse: collapse;

That took care of part of the problem.

I have not been able to find the CSS equivalent of table property,
cellpadding.

I went through www.blooberry.com, no definitive answers. I'll just
leave the property in place for the time being.

Todd

oo- wrote:
> "Todd Cary" <> wrote in message
> news:7vk2d.14029$...
>
>>I have not been able to find the CSS equivalents to the table properties
>>
>>cellspacing
>>cellpadding
>>
>>I tried using
>>
>>Table {
>> border-color: #FFFFFF;
>> background-color: #FFFFFF;
>> width: 100%;
>> border: 0;
>> padding: 0;
>> margin: 0;
>>}
>>
>>but I still get spacing.
>>
>>Todd

>
>
>
> try
>
> table{
> border-collapse: collapse;
> }
>
> yopu may have to apply this to the tds and ths e.g.
>
> th, td{
> border-collapse: collapse;
> margin: 0;
> }
>
> i think there is also a border-spacing attribute for which you can assign
> the value of 0 or none but I'm not sure of its effectiveness.
>
> Phil
>
>

 
Reply With Quote
 
kchayka
Guest
Posts: n/a
 
      09-16-2004
Todd Cary wrote:
>
> I have not been able to find the CSS equivalent of table property,
> cellpadding.


What's wrong with just using padding?
td {padding: .3em}

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
 
Reply With Quote
 
Sam Hughes
Guest
Posts: n/a
 
      09-17-2004
kchayka <> wrote in news::

> Todd Cary wrote:
>>
>> I have not been able to find the CSS equivalent of table property,
>> cellpadding.

>
> What's wrong with just using padding?
> td {padding: .3em}


Why, that would be too easy and too correct!
 
Reply With Quote
 
Todd Cary
Guest
Posts: n/a
 
      09-17-2004
I tried

padding: 0;

However, the fine line still exists. If I put the property

padding="0"

in the table tag, the fine line disappears.

Todd

kchayka wrote:
> Todd Cary wrote:
>
>>I have not been able to find the CSS equivalent of table property,
>>cellpadding.

>
>
> What's wrong with just using padding?
> td {padding: .3em}
>

 
Reply With Quote
 
Todd Cary
Guest
Posts: n/a
 
      09-17-2004
Sam -

I tried

padding: 0;

also

padding: 0px;

However, the fine line still exists between two rows. If I put the property

padding="0"

in the table tag, the fine line disappears.

Todd

Sam Hughes wrote:

> kchayka <> wrote in news::
>
>
>>Todd Cary wrote:
>>
>>>I have not been able to find the CSS equivalent of table property,
>>>cellpadding.

>>
>>What's wrong with just using padding?
>>td {padding: .3em}

>
>
> Why, that would be too easy and too correct!

 
Reply With Quote
 
kchayka
Guest
Posts: n/a
 
      09-18-2004
Todd Cary wrote:
>
> kchayka wrote:
>> Todd Cary wrote:
>>
>>>I have not been able to find the CSS equivalent of table property,
>>>cellpadding.

>>
>> What's wrong with just using padding?
>> td {padding: .3em}


> I tried
> padding: 0;
>
> However, the fine line still exists. If I put the property
> padding="0"
>
> in the table tag, the fine line disappears.


It sounds like you may be (ab)using layout tables. If you're not, why
would anyone care about a pixel or two? If you *are* using layout
tables, what do you hope to gain from defining things like cellpadding
in CSS? Maybe it would clarify your situation if you posted a URL.

And please don't top-post in this newsgroup. thanks for your cooperation.


--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
 
Reply With Quote
 
Todd Cary
Guest
Posts: n/a
 
      09-18-2004
kchayka wrote:
> Todd Cary wrote:
>
>>kchayka wrote:
>>
>>>Todd Cary wrote:
>>>
>>>
>>>>I have not been able to find the CSS equivalent of table property,
>>>>cellpadding.
>>>
>>>What's wrong with just using padding?
>>>td {padding: .3em}

>
>
>>I tried
>>padding: 0;
>>
>>However, the fine line still exists. If I put the property
>>padding="0"
>>
>>in the table tag, the fine line disappears.

>
>
> It sounds like you may be (ab)using layout tables. If you're not, why
> would anyone care about a pixel or two? If you *are* using layout
> tables, what do you hope to gain from defining things like cellpadding
> in CSS? Maybe it would clarify your situation if you posted a URL.
>
> And please don't top-post in this newsgroup. thanks for your cooperation.
>
>


Here are two versions for my client per their specs:

With cellpadding="0" as a property

http://209.204.172.137/nasd/php/login.php


Without cellpdding="0" as a property, however the CSS contains
{padding: 0px;}

http://209.204.172.137/nasd/php/login_2.php
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cellpadding and cellspacing problem K. HTML 22 04-20-2007 08:50 PM
cellspacing und cellpadding =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= HTML 6 08-14-2005 10:36 AM
cellpadding - css Jan Faerber HTML 4 12-08-2004 01:54 PM
Possible to set table cellspacing; cellpadding in CSS? Gnarlodious HTML 2 04-10-2004 06:31 AM
convert cellspacing to CSS shank HTML 8 01-24-2004 03:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57