HighDots Forums  

can CSS completely replace TABLE attributes?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss can CSS completely replace TABLE attributes? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jacob F.
 
Posts: n/a

Default can CSS completely replace TABLE attributes? - 07-04-2004 , 01:56 PM






Hi,
Im struggling to find a cross browser friendly way of rendering a table ( I
would love to avoid a html table, but I think it would be 500x more work to
do this purely in CSS positioning), specifically replacing "cellpadding".
Here is my CSS:

table {
width:100%;
border: 0px;
font-size: 90%;
table-layout: auto;
border-spacing: 0;
border-collapse: collapse;
}

and now I would like to apply some sort of "cellpadding" effect.

Ive tried using "padding:10px;" but it has no effect.

I could just use the "cellpadding" attribute in the html tags, but I wouldnt
be moving forward and learning anything important.
Any ideas??
Thanks so much!
Jacob



Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: can CSS completely replace TABLE attributes? - 07-04-2004 , 02:03 PM






Why bother? If the table works, use it. I beleive the style you are
seeking, however, is border-padding....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Jacob F." <jboyo (AT) yorku (DOT) ca> wrote

Quote:
Hi,
Im struggling to find a cross browser friendly way of rendering a table
( I
would love to avoid a html table, but I think it would be 500x more work
to
do this purely in CSS positioning), specifically replacing "cellpadding".
Here is my CSS:

table {
width:100%;
border: 0px;
font-size: 90%;
table-layout: auto;
border-spacing: 0;
border-collapse: collapse;
}

and now I would like to apply some sort of "cellpadding" effect.

Ive tried using "padding:10px;" but it has no effect.

I could just use the "cellpadding" attribute in the html tags, but I
wouldnt
be moving forward and learning anything important.
Any ideas??
Thanks so much!
Jacob





Reply With Quote
  #3  
Old   
Jacob F.
 
Posts: n/a

Default Re: can CSS completely replace TABLE attributes? - 07-04-2004 , 02:11 PM



Well, your right (re: why bother) but after reading my eyes out on the w3C,
Im nervous I will write some "outdated" material in the code that would
break something later on....silly, I know, but since Im moving forward with
CSS nicely, I would like to try to keep content from display as much as
possible...

My code looks like this now:

table {
width:100%;
border: 0px;
font-size: 100%;
table-layout:auto;
border-spacing:0;
border-collapse:collapse;
border-padding: 5px;
}

No effect in any browser.....
Jacob



"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
Why bother? If the table works, use it. I beleive the style you are
seeking, however, is border-padding....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Jacob F." <jboyo (AT) yorku (DOT) ca> wrote in message
news:cc9gc5$ncc$1 (AT) forums (DOT) macromedia.com...
Hi,
Im struggling to find a cross browser friendly way of rendering a table
( I
would love to avoid a html table, but I think it would be 500x more work
to
do this purely in CSS positioning), specifically replacing
"cellpadding".
Here is my CSS:

table {
width:100%;
border: 0px;
font-size: 90%;
table-layout: auto;
border-spacing: 0;
border-collapse: collapse;
}

and now I would like to apply some sort of "cellpadding" effect.

Ive tried using "padding:10px;" but it has no effect.

I could just use the "cellpadding" attribute in the html tags, but I
wouldnt
be moving forward and learning anything important.
Any ideas??
Thanks so much!
Jacob







Reply With Quote
  #4  
Old   
Michael Fesser
 
Posts: n/a

Default Re: can CSS completely replace TABLE attributes? - 07-04-2004 , 02:31 PM



.oO(Jacob F.)

Quote:
Im struggling to find a cross browser friendly way of rendering a table ( I
would love to avoid a html table, but I think it would be 500x more work to
do this purely in CSS positioning), specifically replacing "cellpadding".
What does the word "cellpadding" tell you?

It's a padding on cells, and that's how you do it in CSS: add the
padding to the cell-elements th and td.

Quote:
Ive tried using "padding:10px;" but it has no effect.
td {padding: 10px}

Micha


Reply With Quote
  #5  
Old   
Jacob F.
 
Posts: n/a

Default Re: can CSS completely replace TABLE attributes? - 07-05-2004 , 11:25 PM



Thanks.

"Michael Fesser" <netizen (AT) gmx (DOT) net> wrote

Quote:
.oO(Jacob F.)

Im struggling to find a cross browser friendly way of rendering a table
( I
would love to avoid a html table, but I think it would be 500x more work
to
do this purely in CSS positioning), specifically replacing "cellpadding".

What does the word "cellpadding" tell you?

It's a padding on cells, and that's how you do it in CSS: add the
padding to the cell-elements th and td.

Ive tried using "padding:10px;" but it has no effect.

td {padding: 10px}

Micha



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.