Re: [WSG] Formatting tables

2005-05-11 Thread Patrick H. Lauke
Geoff Pack wrote: I find that it often helps to add a border in the html which then limits you to only using HTML 4 or XHTML 1.0 Transitional -- Patrick H. Lauke _ re·dux (adj.): brought back; returned. used postpositively [latin : re-, re- +

Re: [WSG] Formatting tables

2005-05-11 Thread Rick Faaberg
On 5/11/05 12:02 AM Patrick H. Lauke [EMAIL PROTECTED] sent this out: I find that it often helps to add a border in the html which then limits you to only using HTML 4 or XHTML 1.0 Transitional Would that be bad? If so, why would that be bad? I sure read differing opinions on all this XHTML

Re: [WSG] Formatting tables

2005-05-11 Thread Philippe Wittenbergh
On 11 May 2005, at 4:02 pm, Patrick H. Lauke wrote: Geoff Pack wrote: I find that it often helps to add a border in the html which then limits you to only using HTML 4 or XHTML 1.0 Transitional That is not correct. http://dev.l-c-n.com/_temp/table_1.php Is perfectly valid application/xhtml+xml --

Re: [WSG] Formatting tables

2005-05-11 Thread Patrick H. Lauke
Rick Faaberg wrote: Would that be bad? If so, why would that be bad? Not necessarily bad, no.Just thought it would be worth spelling out the implications of using border and such attributes. Of course, the only true value of XHTML (strict) comes when you're mixing different XML technologies in

RE: [WSG] Formatting tables

2005-05-11 Thread Patrick Lauke
Philippe Wittenbergh That is not correct. http://dev.l-c-n.com/_temp/table_1.php Is perfectly valid application/xhtml+xml -- xhtml1.1 table border=0 cellpadding=1 cellspacing=0 Hmmm...interesting. Thanks for the correction. Bizarre, though, that those attributes have been left in the

[WSG] Formatting tables

2005-05-10 Thread Hope Stewart
Can anyone recommend a website with indepth instructions/info on formatting a table (being used for tabular data!) using web standards css? I've tried putting all the formatting in my css file, but it doesn't seem to work so I'm obviously not doing something right. For example, instead of table

Re: [WSG] Formatting tables

2005-05-10 Thread James Ellis
Hi Hope Do you have a link to the table in question so we can see whats not working (and the way you want it to work?) hint : border-collapse : collapse; gets rid of the need for cellpadding and cellspacing in the html Yes, it's better to put all your presentational code in the CSS. Cheers

Re: [WSG] Formatting tables

2005-05-10 Thread Lachlan Hardy
Hope Stewart wrote: For example, instead of table cellpadding=8 summary=This is a table of products and prices. I left out the cellpadding attribute in the table tag and added this to my style sheet: td { padding: 0.5em 5px 2em 0; } but it didn't work. G'day Hope, Typically, that padding

Re: [WSG] Formatting tables

2005-05-10 Thread Hope Stewart
Thanks for your suggests, James. I'm currently reading through the w3.org spec whose link Lachlan Hardy gave: http://www.w3.org/TR/REC-CSS2/tables.html I'll then give the table another go and if I'm still having problems will certainly cry out for help again. I like figuring out things for

Re: [WSG] Formatting tables

2005-05-10 Thread Matt Thommes
Do you have a link to the table in question so we can see whats not working (and the way you want it to work?) hint : border-collapse : collapse; gets rid of the need for cellpadding and cellspacing in the html Yes, it's better to put all your presentational code in the CSS. I am

Re: [WSG] Formatting tables

2005-05-10 Thread Philippe Wittenbergh
On 10 May 2005, at 10:01 pm, Matt Thommes wrote: I am under the impression that cellspacing is not yet supported in CSS - but cellpadding can be added with the padding property. I usually just use the cellspacing attribute within my table tag - but that's the only one. Everything else, regarding

RE: [WSG] Formatting tables

2005-05-10 Thread Geoff Pack
Try turning off all your styles and see if the table still makes sense. If not, then you need to add some table attributes. I find that it often helps to add a border in the html, but most of the time the default values for the other attributes are fine, and can be styled with CSS. cheers,