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
  #41  
Old   
W˙rm
 
Posts: n/a

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







<phil-news-nospam (AT) ipal (DOT) net> kirjoitti
viestissä:e38c3732s8o (AT) news4 (DOT) newsguy.com...

<snip>

Quote:
How to keep the columns from floating down to the bottom when the window
is narrower?
Let them float down instead of trying to prevent it, don't make issue from
something that is not. There are ways to prevent it though, but I'd rather
see stuff to adjust to viewport so...




Reply With Quote
  #42  
Old   
axlq
 
Posts: n/a

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






In article <Pine.LNX.4.64.0605021219310.15595 (AT) ppepc87 (DOT) ph.gla.ac.uk>,
Alan J. Flavell <flavell (AT) physics (DOT) gla.ac.uk> wrote:
Quote:
In the sense that CSS is optional by design, it "works" to
specification in IE. It's just that IE chooses not to take the
option.
Not really... It would be nice if IE actually did consider CSS
optional and choose not to take the option. Instead, it chooses to
implement the option incorrectly. That's a totally different thing.

-A


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

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



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

Quote:
On Tue, 02 May 2006 22:25:17 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote:
| Because they are two different things: One (HTML tables) is markup for
| tabular data. E.g. it includes the "Table rendering by non-visual user
| agents" (HTML 4.01, section 11.4). The other (CSS table presentation
| model) is just for presenting content in a certain way (a grid).

So why not use the CSS table presentation model for the tubular data?
In many browsers the CSS table presentation model _is_ used for
presenting table/tr/td etc. That's the default rendering.

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


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

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



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

Quote:
Why have two mechanisms that work the same way?
Why is there a strong element in HTML, when CSS offers 'font-weight:
bold'? Same answer.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


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

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




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

<snip>

Quote:
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.




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

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




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

Quote:
And where did I say you said it? I was modifying your information, not
contradicting it.
If one would been talking about bananas and you'd go on telling pretty
accusatorily "but pink bananas are no bananas they're grapes!" one might
like EXPECT it has relation to talk about bananas you know.


<snip>

Quote:
You're being childishly gratuitous. Of course, that rather fits this
whole
thread.
ofcoz

<snip>




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

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



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

On Tue, 02 May 2006 22:25:17 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote:
| Because they are two different things: One (HTML tables) is markup for
| tabular data. E.g. it includes the "Table rendering by non-visual user
| agents" (HTML 4.01, section 11.4). The other (CSS table presentation
| model) is just for presenting content in a certain way (a grid).

So why not use the CSS table presentation model for the tubular data?

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? Why?

The relationship of data to each other when in a table is fixed. Is CSS
tables trying to change that? I still see no point in having this in CSS
unless there is something different (and hopefully better).

--
-----------------------------------------------------------------------------
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
  #48  
Old   
phil-news-nospam@ipal.net
 
Posts: n/a

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



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

Why have two mechanisms that work the same way?

Why is there a strong element in HTML, when CSS offers 'font-weight:
bold'? Same answer.
No.

There still has to be something in HTML for the content to say "this is
strong", whether that is <b>foo</b> or <div class="strong">foo</div>.
CSS cannot just select unmarked text and make it bold or strong. There
has to be content markup to give CSS a handle on it.

In some cases making something bold/strong is content. But in other cases
it is style, such as making headings bold, or not, as a choice of style.

Putting tabular data (or data that might not look tabular to some but
needs to be treated as tabular) into relationships of rows and columns
is content markup, not style. Once in a relationship like that, then
it is a table. Then it's fine for CSS to stylize it in some way (maybe
controlling the borders, for example).

CSS cannot, for example, know how many columns the table might have.
One table might have 4 columns and another table might have 6 columns.
But if the stylemaster wants all tables to have a black border around
the whole table, gray lines separating all cells, a pink background
color, and blue text, then he would use CSS and have _one_ stylesheet
without regard to the number of columns.

So tell me again why CSS needs to define the tabular relationships in
the data, and how it can do that without knowing anything about the
data, in any way _more_ than what can be done with the tags we already
have in HTML? I can see a need perhaps to do this for XML which is
devoid of such tags.

--
-----------------------------------------------------------------------------
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
  #49  
Old   
phil-news-nospam@ipal.net
 
Posts: n/a

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



On Wed, 3 May 2006 05:25:23 +0300 "W?rm" <nomailstodragon (AT) north (DOT) invalid> wrote:
Quote:
phil-news-nospam (AT) ipal (DOT) net> kirjoitti
viestiss?:e38c3732s8o (AT) news4 (DOT) newsguy.com...

snip

How to keep the columns from floating down to the bottom when the window
is narrower?

Let them float down instead of trying to prevent it, don't make issue from
something that is not. There are ways to prevent it though, but I'd rather
see stuff to adjust to viewport so...
I'd rather see stuff that maintains its data relationship and does not
alter the semantics of the content by moving data into a different column.
Poor baby, has to use the horizontal scroll bar to see everything on his
puny little screen.

--
-----------------------------------------------------------------------------
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
  #50  
Old   
phil-news-nospam@ipal.net
 
Posts: n/a

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



On Wed, 03 May 2006 04:21:36 -0400 Neredbojias <http://www.neredbojias.com/fliam.php?cat=alt.html> wrote:
Quote:
To further the education of mankind, "W?rm"
nomailstodragon (AT) north (DOT) invalid> vouchsafed:


phil-news-nospam (AT) ipal (DOT) net> kirjoitti
viestiss?:e35fio11vup (AT) news2 (DOT) newsguy.com...

snip

It probably comes down to the fact that my intentions in a grid
structure do match the semantics of a table and tabular data.

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.

Here's a mock-up I made using someone's visual example from above. Putting
all the ridiculous artificial restrictions aside, it uses no tables, is
fluid, and works in IE. It, unfortunately, doesn't work in Opera because
of Opera's flawed graphic technology.

http://www.neredbojias.com/zyxix/chess/chss2.html

As I intimated, it's just a prototype, but I think it could be a decent
base for a dynamic chess page.
Now put some content on that cheesboard, such as pieces, or text that
represents pieces, in various positions that present a position of play.
Given that there are not 64 discrete items in the markup where this could
be done, it is not obvious how your design would accomplish that. I do
know I could accomplish it with a table that has 64 TD elements. Or try
putting the letter/number code in each square.

--
-----------------------------------------------------------------------------
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
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.