HighDots Forums  

grid structures: TABLE/TR/TD vs. DIV

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss grid structures: TABLE/TR/TD vs. DIV in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #51  
Old   
phil-news-nospam@ipal.net
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-03-2006 , 10:30 AM






On Wed, 3 May 2006 14:23:28 +0300 "W?rm" <nomailstodragon (AT) north (DOT) invalid> wrote:
Quote:
"Neredbojias" <http://www.neredbojias.com/fliam.php?cat=alt.html> kirjoitti
viestiss?:Xns97B8DD4DC1D6httpwwwneredbojiasco (AT) 208 (DOT) 49.80.251...

snip

If it's tabular data, use table. It's that simple.

If table is just there to do layout certain way when data is _NOT
tabular_, don't, there are almost certainly better ways to do that
layout.

A chessboard grid is not tabular data, it's structured data. There is a
difference.

And where did I say it is? Incase it escaped you what I meant above.

Translation: (spell it word by word if meaning still happily escapes from
you)

If
it's
tabular
data,
use
table.
It's
that
simple.

And data in it meaning _ANY_ data, not just some silly chess stuff.
This still leaves open all the arguments about whether some data is, or
is not, tabular data. You're saying if it is tabular data, put it in a
table ... that's fine. You didn't say if it's not tabular data, what to
do or not do. But then you say "_ANY_ data", so I guess that leaves it
open to use a table for anything when the semantics effects of a table
is what is desired.

--
-----------------------------------------------------------------------------
Quote:
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
(first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


Reply With Quote
  #52  
Old   
Johannes Koch
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-03-2006 , 11:20 AM






phil-news-nospam (AT) ipal (DOT) net wrote:

Quote:
So tell me again why CSS needs to define the tabular relationships in
the data,
CSS _does not_ define tabluar relationships. It just defines
presentation characteristics. E.g. adjacent blocks with "display:
table-cell" have the same height.

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Reply With Quote
  #53  
Old   
Johannes Koch
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-03-2006 , 11:23 AM



phil-news-nospam (AT) ipal (DOT) net wrote:

Quote:
On Wed, 03 May 2006 10:05:44 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote:
| In many browsers the CSS table presentation model _is_ used for
| presenting table/tr/td etc. That's the default rendering.

A new feature that does the same thing as the old feature?
HTML does not the same as CSS. HTML defines structure, CSS suggests
presentation.

Quote:
The relationship of data to each other when in a table is fixed. Is CSS
tables trying to change that?
No, you can change the appearance with CSS.

Quote:
I still see no point in having this in CSS
unless there is something different (and hopefully better).
CSS defines the presentation characteristics used in the default
rendering of table/tr/td elements. Just like CSS defines a font-weight
property that is used (value bold) in the default rendering of HTML's
strong element.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Reply With Quote
  #54  
Old   
phil-news-nospam@ipal.net
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-03-2006 , 01:35 PM



On Wed, 03 May 2006 17:23:47 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote:
Quote:
phil-news-nospam (AT) ipal (DOT) net wrote:

On Wed, 03 May 2006 10:05:44 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote:
| In many browsers the CSS table presentation model _is_ used for
| presenting table/tr/td etc. That's the default rendering.

A new feature that does the same thing as the old feature?

HTML does not the same as CSS. HTML defines structure, CSS suggests
presentation.
And a table is a structure. Of course its presentation can be styled, too.


Quote:
The relationship of data to each other when in a table is fixed. Is CSS
tables trying to change that?

No, you can change the appearance with CSS.
That's what I thought. So for the structure, I should use HTML. Then
for the appearance use CSS. That's what I thought all along.


Quote:
I still see no point in having this in CSS
unless there is something different (and hopefully better).

CSS defines the presentation characteristics used in the default
rendering of table/tr/td elements. Just like CSS defines a font-weight
property that is used (value bold) in the default rendering of HTML's
strong element.
And I can change how table/tr/td presented, too.

But I still use table/tr/td to define the structure.

--
-----------------------------------------------------------------------------
Quote:
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
(first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


Reply With Quote
  #55  
Old   
phil-news-nospam@ipal.net
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-03-2006 , 01:37 PM



On Wed, 03 May 2006 17:20:04 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote:
Quote:
phil-news-nospam (AT) ipal (DOT) net wrote:

So tell me again why CSS needs to define the tabular relationships in
the data,

CSS _does not_ define tabluar relationships. It just defines
presentation characteristics. E.g. adjacent blocks with "display:
table-cell" have the same height.
But how is it that the CSS capability is having certain people tell me
to not use TABLE/TR/TD/etc in HTML?

--
-----------------------------------------------------------------------------
Quote:
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
(first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


Reply With Quote
  #56  
Old   
W˙rm
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-03-2006 , 05:20 PM




<phil-news-nospam (AT) ipal (DOT) net> kirjoitti
viestissä:e3aeqo41qtd (AT) news2 (DOT) newsguy.com...
Quote:
On Wed, 3 May 2006 14:23:28 +0300 "W?rm" <nomailstodragon (AT) north (DOT) invalid
wrote:
|
| "Neredbojias" <http://www.neredbojias.com/fliam.php?cat=alt.html
kirjoitti
| viestiss?:Xns97B8DD4DC1D6httpwwwneredbojiasco (AT) 208 (DOT) 49.80.251...
|
| <snip
|
|>> If it's tabular data, use table. It's that simple.
|
|>> If table is just there to do layout certain way when data is _NOT
|>> tabular_, don't, there are almost certainly better ways to do that
|>> layout.
|
|> A chessboard grid is not tabular data, it's structured data. There is
a
|> difference.
|
| And where did I say it is? Incase it escaped you what I meant above.
|
| Translation: (spell it word by word if meaning still happily escapes
from
| you)
|
| If
| it's
| tabular
| data,
| use
| table.
| It's
| that
| simple.
|
| And data in it meaning _ANY_ data, not just some silly chess stuff.

This still leaves open all the arguments about whether some data is, or
is not, tabular data. You're saying if it is tabular data, put it in a
table ... that's fine. You didn't say if it's not tabular data, what to
do or not do. But then you say "_ANY_ data", so I guess that leaves it
open to use a table for anything when the semantics effects of a table
is what is desired.
And I bet you also use hammer to drive in screws, instead of using
screwdriver. After all, IT can be done.

You are making issues from anything just because you wanna argue and not use
elements that have proper semantical meaning. Like in your linux page, those
links, they are LISTS of links so use <ul><li><a href="">..</a></li>...</ul>
structure for those. Those lists had image in top if I recall right, like a
heading, so maybe use heading for those, etc. Just because you try to twist
something to be tabular data when it obviously is not, it don't make it
"proper use of tables".

Use elements that have proper _SEMANTICAL_ meaning. If you got tabular data
it's table, for a LIST it is a list etc. When you do not have any element
that has proper semantical meaning for something, go for DIV or SPAN. Just
keep it simple.

Do not make issues just because you wanna argue.




Reply With Quote
  #57  
Old   
W˙rm
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-03-2006 , 07:25 PM




"Neredbojias" <http://www.neredbojias.com/fliam.php?cat=alt.html> kirjoitti
viestissä:Xns97B899C2D514Fhttpwwwneredbojiasco (AT) 208 (DOT) 49.80.251...

<snip>

Quote:
The whole point of my original post was to gleen feedback about what you
(et al) thought of my version of the grid. Instead I get nonsense.
Whoa!! Now hold on your horses and do some rechecking about WHO might have
said something. I haven't said __ANYTHING__ about your version of grid.


<snip>




Reply With Quote
  #58  
Old   
phil-news-nospam@ipal.net
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-04-2006 , 01:03 AM



On Wed, 03 May 2006 23:50:16 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote:
Quote:
phil-news-nospam (AT) ipal (DOT) net wrote:
But how is it that the CSS capability is having certain people tell me
to not use TABLE/TR/TD/etc in HTML?

If you have tabular data, use table, caption, col, colgroup, thead,
tfoot, tbody, tr, th, td. If you don't have tabular data, use
appropriate markup. Additionally, if you want the non-tabular data to be
styled like a grid (equal height etc.), then use the CSS table model.
In another followup you weren't saying this. Now you are. I don't get
what this flip flop is.

What do you think the "appropriate markup" is for non-tabular data that
needs to have the same rigid structure as a table?


Quote:
E.g. DocBook defines an element called 'simplelist'
(<http://www.docbook.org/tdg/en/html/simplelist.html>), which may be
presented as a grid:

apple banana bread cherry
hazelnut mango orange pear
potato tomato

This is not really tabular. What is it that mango has in common with
banana and tomato that differs from hazelnut, orange and pear? What OTOH
does mango have in common with hazelnut, orange and pear that differs
from banana and tomato? There are no row and column relations. It's just
a 2-dimensional presentation of a 1-dimensional list.
That data could just as easily come out as:

apple banana bread cherry hazelnut
mango orange pear potato tomato

or as:

apple banana bread
cherry hazelnut mango
orange pear potato
tomato

This example is not what I have been talking about.

But I'll talking about it briefly, anyway. I'd like to have a COLUMN
orientation version of that, which would come out like this:

apple bread hazelnut orange potato
banana cherry mango pear tomato

or in a narrower window like:

apple cherry orange tomato
banana hazelnut pear
bread mango potato

or even:

apple hazelnut potato
banana mango tomato
bread orange
cherry pear

There are some things where this would work better, such as a list of
files in a folder/directory. But it would be style ... something to
decide how to present. Does CSS have a way to say to list stuff this
way? In case someone doesn't see what I'm showing, just look at the
alphabetical sequence of these "food items".

But if I have 2-dimentional data, then this is not the thing to be doing.
So I'm still back to using TABLE/TR/TD, etc., for the 2-D stuff.

--
-----------------------------------------------------------------------------
Quote:
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
(first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


Reply With Quote
  #59  
Old   
phil-news-nospam@ipal.net
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-04-2006 , 01:23 AM



On Thu, 4 May 2006 00:20:49 +0300 "W?rm" <nomailstodragon (AT) north (DOT) invalid> wrote:

Quote:
And I bet you also use hammer to drive in screws, instead of using
screwdriver. After all, IT can be done.
I make my decisions based on what is practical. YES! I do use a hammer
on a screw ... to pound in just enough of a dent in the wood to keep the
screw stable as the screwdriver turns it into the wood. In extreme cases
I'll even use a drill to drill a hole a bit smaller than the screw core
to avoid causing the wood to split.

But it is NOT practical to use a hammer to drive the screw in all the way
unless you're objective it to just gouge a hole in the wood (someone might
want to do that). On a smaller scale, your dentist may well be doing
something akin to that with the tiny tools used for root canals.

I use TABLE/TR/TD for what those are the most practical solution I can
see at the time.


Quote:
You are making issues from anything just because you wanna argue and not use
elements that have proper semantical meaning.
No.

I use what works most practical. I simply have not seen anything that
is any more practical than using TABLE/TR/TD for 2-D data. If you want
to every show how it is done some other way, maybe I can show you where
your solution doesn't match my problem.

Quote:
Like in your linux page, those
links, they are LISTS of links so use <ul><li><a href="">..</a></li>...</ul
structure for those. Those lists had image in top if I recall right, like a
heading, so maybe use heading for those, etc. Just because you try to twist
something to be tabular data when it obviously is not, it don't make it
"proper use of tables".
If you look more closely at the source you'll see that the list of links
is NOT structured in a table. The entire list for a given site, inside
a box for that site, is in ONE cell. There are BR elements to force each
link to a new line ... not TR elements.

An early version DID use UL/LI, but that never came out right. That MAY
be tweakable today, but some things like the bullet size don't seem to
be adjustable. So for now, they are just a list formed in lines with BR.

The page does have two basic levels of tables (with additional levels used
to wedge things into place). The outer level is to organize things into
3 columns ... in a way that stays as 3 columns. The inner level is the big
mess used to create the drop shadow effect. This inner layer is what will
go away soon. I already have it's general replacement done in CSS, and am
working on reorganizing the PHP code before it all goes online.


Quote:
Use elements that have proper _SEMANTICAL_ meaning. If you got tabular data
it's table, for a LIST it is a list etc. When you do not have any element
that has proper semantical meaning for something, go for DIV or SPAN. Just
keep it simple.
Show me where a list (there are many separate lists on linuxhomepage.com)
is being formatted using a table.


Quote:
Do not make issues just because you wanna argue.
Why not show what you think is the solution, so you can either prove
someone wrong ... or perhaps have your solution knocked down because
maybe you didn't understand the original problem. There are LAYERS
going on in LHP. The list of links is the 3rd layer. The shadows are
the 2nd layer (though in a correct markup, this shouldn't be a layer).
And the columnization is the 1st layer.

--
-----------------------------------------------------------------------------
Quote:
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
(first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


Reply With Quote
  #60  
Old   
Mark Parnell
 
Posts: n/a

Default Re: grid structures: TABLE/TR/TD vs. DIV - 05-04-2006 , 01:24 AM



Deciding to do something for the good of humanity,
<phil-news-nospam (AT) ipal (DOT) net> declared in
comp.infosystems.www.authoring.stylesheets:

Quote:
But I'll talking about it briefly, anyway. I'd like to have a COLUMN
orientation version of that, which would come out like this:
snip
There are some things where this would work better, such as a list of
files in a folder/directory. But it would be style ... something to
decide how to present. Does CSS have a way to say to list stuff this
way?
CSS3 does/will.
http://www.w3.org/TR/2005/WD-css3-multicol-20051215/

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html


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.