![]() | |
#91
| |||
| |||
|
|
I've seen several different examples over the past few days and cannot say which is which anymore. I don't bother to try to remember all the details of things where the other party isn't trying to follow through on those issues. I just dismiss it and remember that some greater number of examples still don't work. Of course, if you are wanting make something work, and follow through to get it working in all ways, I'm certainly willing to give feedback. But here are some of the issues I have seen: 1. It must be a separate CSS file that works regardless of how many different columns the HTML marked up content has. |
|
2. It must not "float" any items down to following "rows" (what appears to be a row). 3. Text (and everything else) must not bleed out from the bounds of the cell. If the font size is too large, it must keep either whole words, or at least whole character glyphs, within the cell, even if that means the total width forces horizontal scrolling. |
|
There may be other issues. In all, the way TABLE/TR/TD elements work in HTML must be retained. |
#92
| ||||
| ||||
|
|
phil-news-nospam (AT) ipal (DOT) net wrote: On Fri, 05 May 2006 19:37:07 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: | phil-news-nospam (AT) ipal (DOT) net wrote: |>On Fri, 05 May 2006 08:10:01 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>| It's all about the semantics. A table has semantics whereby any piece |>| of content belongs to a row and column and that belonging has a set |>| meaning. A 'grid' just has the same appearance but none of the |>| semantics. | |>I've found more than one kind of semantics for a grid. | | A grid has no semantics. Sure it does. But there's no real value in debating words. What I want is what a grid is with the semantics that I see with TABLE/TR/TD elements. The semantics of a table are "This is a table, there are relationships between the items in the rows and columns as specified by the row and column headers". Those semantics remain the same regardless of whether the table is presented as a 2d grid on a screen/piece of paper, read out in some way by a speech browser, linearised by a braile device, stripped to its component pieces by a script and inserted into a database, etc. |
|
A grid does not have those semantics. A grid just has presentation, it says nothing about what the dat _is_ but everything about how the data _looks_. I strongly suspect that you are not using the word semantics in the same way as the rest of us. Which lets me make a terrible meta-something joke and ask you "what do you mean by semantics?" ;-) |
|
To me, it's a grid if it meets certain criteria. I call those criteria the semantics of a grid. But maybe it might be clearer to shift the usage over to something like "rigid grid". Probably for the best. |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#93
| |||
| |||
|
|
The semantics of a table are "This is a table, there are relationships between the items in the rows and columns as specified by the row and column headers". Those semantics remain the same regardless of whether the table is presented as a 2d grid on a screen/piece of paper, read out in some way by a speech browser, linearised by a braile device, stripped to its component pieces by a script and inserted into a database, etc. |
|
A table should also imply that certain alterations in appearance or presentation are not permitted. |
#94
| ||||||||||
| ||||||||||
|
|
phil-news-nospam (AT) ipal (DOT) net wrote: I've seen several different examples over the past few days and cannot say which is which anymore. I don't bother to try to remember all the details of things where the other party isn't trying to follow through on those issues. I just dismiss it and remember that some greater number of examples still don't work. Of course, if you are wanting make something work, and follow through to get it working in all ways, I'm certainly willing to give feedback. But here are some of the issues I have seen: 1. It must be a separate CSS file that works regardless of how many different columns the HTML marked up content has. That becomes tricky if you want the table columns to have equal widths (I'm assuming that the table should be 100% wide and not some fixed pixel width). If the column widths are in the CSS then some assimputions need to be made about the number of columns. If the column widths are inline in the HTML then you start to bloat your code. |
|
The example I'm using gets around this by setting two classes on the parent div. One sets up all the basic table presentation, and the other sets up the column widths. |
|
2. It must not "float" any items down to following "rows" (what appears to be a row). 3. Text (and everything else) must not bleed out from the bounds of the cell. If the font size is too large, it must keep either whole words, or at least whole character glyphs, within the cell, even if that means the total width forces horizontal scrolling. These come as standard with CSS tables just as they do with HTML tables. Whatever examples you saw were probably using floats rather than CSS tables. |
|
Both can be worked around to a certain extent when using floats by use of min-width styles (so that includes IE 7 but not Ie 6) but will still break down in extreme cases. |
|
There may be other issues. In all, the way TABLE/TR/TD elements work in HTML must be retained. Even the things that make tables a poor choice for web page layout (the very rigidity you desire, oo er missus). http://steve.pugh.net/test/css-table-demo.html |
|
Note that all the cells in each row have the same height regardless of the height of their contents. That each row stays together no matter how narrow the window becomes and that the content always stays inside the cells. The HTML is minimal, the CSS likewise. |
|
My choice of ul for the rows and li for the cells was arbitrary but ensures that thre's some measure of presentation even in IE which doesn't support display: table. |
|
Works as desired in FireFox and Opera and I hope it works in Safari/Konqueror as well. IE, even IE 7, is a lost cause. Maybe in IE 8. |
|
I've included a short block of code inside an IE conditional comment that gives IE a basic floated layout instead. This demonstrates quite clearly some of the shortcomings with floats for this sort of layout and why MS really need to pull their finger out and implement CSS tables (only eight years and counting since the spec was published). |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#95
| ||||||||
| ||||||||
|
|
On Sat, 06 May 2006 10:38:02 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: | phil-news-nospam (AT) ipal (DOT) net wrote: |>On Fri, 05 May 2006 19:37:07 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>| phil-news-nospam (AT) ipal (DOT) net wrote: |>|>On Fri, 05 May 2006 08:10:01 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: | |>|>| It's all about the semantics. A table has semantics whereby any piece |>|>| of content belongs to a row and column and that belonging has a set |>|>| meaning. A 'grid' just has the same appearance but none of the |>|>| semantics. |>| |>|>I've found more than one kind of semantics for a grid. |>| |>| A grid has no semantics. | |>Sure it does. But there's no real value in debating words. What I want |>is what a grid is with the semantics that I see with TABLE/TR/TD elements. | | The semantics of a table are "This is a table, there are relationships | between the items in the rows and columns as specified by the row and | column headers". Those semantics remain the same regardless of whether | the table is presented as a 2d grid on a screen/piece of paper, read | out in some way by a speech browser, linearised by a braile device, | stripped to its component pieces by a script and inserted into a | database, etc. A table should also imply that certain alterations in appearance or presentation are not permitted. |
|
What term would you use for data that is not tabular in nature, but requires exactly the same presentation? |
|
| A grid does not have those semantics. A grid just has presentation, it | says nothing about what the dat _is_ but everything about how the data | _looks_. | | I strongly suspect that you are not using the word semantics in the | same way as the rest of us. Which lets me make a terrible | meta-something joke and ask you "what do you mean by semantics?" ;-) If the semantics of a grid is only about presentation, then it is an incomplete statement about what I want to have in my layout. |
|
Certainly a grid presentation is still a grid presentation if the cells of a table are randomly scattered about, and the dimensions are not the same between the grid and the table. |
|
I wasn't talking about just presentation in _my_ semantics of a grid. |
|
But because you aren't willing to understand what _my_ semantics are, |
|
I'm faced with the challenge of finding a term within your vocabulary that does have the semantics I want. I'm not sure there is one, but the term table is the closest I can think of at the moment. |
|
|>To me, it's a grid if it meets certain criteria. I call those criteria |>the semantics of a grid. But maybe it might be clearer to shift the |>usage over to something like "rigid grid". | | Probably for the best. What I get out of using TABLE/TR/TD elements in HTML is the closest to what I want. Examples shown and found using CSS have been further away from it. |
#96
| |||
| |||
|
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#97
| ||||||||||
| ||||||||||
|
|
phil-news-nospam (AT) ipal (DOT) net wrote: On Sat, 06 May 2006 10:38:02 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: | phil-news-nospam (AT) ipal (DOT) net wrote: |>On Fri, 05 May 2006 19:37:07 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>| phil-news-nospam (AT) ipal (DOT) net wrote: |>|>On Fri, 05 May 2006 08:10:01 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: | |>|>| It's all about the semantics. A table has semantics whereby any piece |>|>| of content belongs to a row and column and that belonging has a set |>|>| meaning. A 'grid' just has the same appearance but none of the |>|>| semantics. |>| |>|>I've found more than one kind of semantics for a grid. |>| |>| A grid has no semantics. | |>Sure it does. But there's no real value in debating words. What I want |>is what a grid is with the semantics that I see with TABLE/TR/TD elements. | | The semantics of a table are "This is a table, there are relationships | between the items in the rows and columns as specified by the row and | column headers". Those semantics remain the same regardless of whether | the table is presented as a 2d grid on a screen/piece of paper, read | out in some way by a speech browser, linearised by a braile device, | stripped to its component pieces by a script and inserted into a | database, etc. A table should also imply that certain alterations in appearance or presentation are not permitted. No that's not a table. A table is still a table if it's being presented aurally instead of visually. A table means that certain alterations of the data and markup aren't permitted. i.e. you can't swap row 2, column 3 with row 3, column 5. The fact that this leads to certain presentational constraints in certain media is a consequence not a starting point. |
|
What term would you use for data that is not tabular in nature, but requires exactly the same presentation? Maybe I'd call it an image? On the WWW I'd almost certainly call it broken. |
|
| A grid does not have those semantics. A grid just has presentation, it | says nothing about what the dat _is_ but everything about how the data | _looks_. | | I strongly suspect that you are not using the word semantics in the | same way as the rest of us. Which lets me make a terrible | meta-something joke and ask you "what do you mean by semantics?" ;-) If the semantics of a grid is only about presentation, then it is an incomplete statement about what I want to have in my layout. Could you try that sentence again in English? The grid has no semantics, and semantics are never about presentation so the first clause is hopeless, and I'm not sure which statement you are referring to in the second clause. |
|
Certainly a grid presentation is still a grid presentation if the cells of a table are randomly scattered about, and the dimensions are not the same between the grid and the table. Sorry, I think I need an example. |
|
I wasn't talking about just presentation in _my_ semantics of a grid. Then what are the semantics of your grid? Without referencing anything to do with the presentation please explain what semantics your 'grid' has. What does the 'grid' mean? This meaning should be invariant of the media used to present the 'grid' so it must remain the same when presented aurally for example. |
|
But because you aren't willing to understand what _my_ semantics are, I'm very willing, but other than saying that you want the same presentation as a table you haven't been willing to say what your requirements are. |
|
I'm faced with the challenge of finding a term within your vocabulary that does have the semantics I want. I'm not sure there is one, but the term table is the closest I can think of at the moment. Grid seems to be doing just fine. You want the a rigid grid for presentation purposes. That is clear. You also seem to think that this rigid grid has some form of semantics ina ddition to its presentational apsects but you haven't elaborated on what these semantics are. What does <grid>data</grid> mean that plain data does not mean? |
|
|>To me, it's a grid if it meets certain criteria. I call those criteria |>the semantics of a grid. But maybe it might be clearer to shift the |>usage over to something like "rigid grid". | | Probably for the best. What I get out of using TABLE/TR/TD elements in HTML is the closest to what I want. Examples shown and found using CSS have been further away from it. You want a rigid layout grid. We get that. We got that many, many posts ago. We have explained that you can get such a rigid grid with CSS tables but that they are not safe to use in the wild as IE doesn't support them. But putting concerns about IE to one side and concentrating on the theoretical... |
|
All the rest of this sound and fury has been a struggle to understand what you mean by semantics (as it is clear that you do not mean what the rest of us mean) and what these 'semantics' of a grid are, once we understand what the semantics you require are can suggest the most appropriate HTML to convey those semantics, and then we can apply CSS on top of that to give you the rigid grid presentation. That's how it works - HTML for semantics and CSS for presentation. |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#98
| ||||||||||||||
| ||||||||||||||
|
|
On Sat, 06 May 2006 18:48:03 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: | phil-news-nospam (AT) ipal (DOT) net wrote: |>On Sat, 06 May 2006 10:38:02 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>| phil-news-nospam (AT) ipal (DOT) net wrote: |>|>On Fri, 05 May 2006 19:37:07 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>|>| phil-news-nospam (AT) ipal (DOT) net wrote: |>|>|>On Fri, 05 May 2006 08:10:01 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>| | A table means that certain alterations of the data and markup aren't | permitted. i.e. you can't swap row 2, column 3 with row 3, column 5. | The fact that this leads to certain presentational constraints in | certain media is a consequence not a starting point. It's the consequence I want. I don't know why you though I meant it was a starting point. |
|
|> What term would you use for data that |>is not tabular in nature, but requires exactly the same presentation? | | Maybe I'd call it an image? On the WWW I'd almost certainly call it | broken. Why would it be broken? |
|
I see no reason to have a constraint on _what_ you can put in a table. If it's a number, fine. If it's a block text, why should that matter? |
|
|>If the semantics of a grid is only about presentation, then it is an |>incomplete statement about what I want to have in my layout. | | Could you try that sentence again in English? The grid has no | semantics, and semantics are never about presentation so the first | clause is hopeless, and I'm not sure which statement you are referring | to in the second clause. We clearly are NOT think of the same thing with the word "grid". |
|
|>Certainly a grid presentation is still a grid presentation if the cells |>of a table are randomly scattered about, and the dimensions are not the |>same between the grid and the table. | | Sorry, I think I need an example. It's like a table, with no required relationships. |
|
It's when you put the two together you get all the semantics combined. |
|
Of course since you don't recognize the word "grid" the way I do, this won't mean anything to you. |
|
|>I wasn't talking about just presentation in _my_ semantics of a grid. | | Then what are the semantics of your grid? Without referencing anything | to do with the presentation please explain what semantics your 'grid' | has. What does the 'grid' mean? This meaning should be invariant of | the media used to present the 'grid' so it must remain the same when | presented aurally for example. The grid is a 2 dimensional structure, primarily whole in both dimensions (e.g. no columns with fewer rows and no rows with fewer columns). |
|
|>But because you aren't willing to understand what _my_ semantics are, | | I'm very willing, but other than saying that you want the same | presentation as a table you haven't been willing to say what your | requirements are. I want what I get with TABLE/TR/TD. |
|
|>I'm faced with the challenge of finding a term within your vocabulary |>that does have the semantics I want. I'm not sure there is one, but |>the term table is the closest I can think of at the moment. | | Grid seems to be doing just fine. You want the a rigid grid for | presentation purposes. That is clear. You also seem to think that this | rigid grid has some form of semantics ina ddition to its | presentational apsects but you haven't elaborated on what these | semantics are. | | What does <grid>data</grid> mean that plain data does not mean? I have no idea what you are trying to refer to. |
|
| All the rest of this sound and fury has been a struggle to understand | what you mean by semantics (as it is clear that you do not mean what | the rest of us mean) and what these 'semantics' of a grid are, once we | understand what the semantics you require are can suggest the most | appropriate HTML to convey those semantics, and then we can apply CSS | on top of that to give you the rigid grid presentation. | | That's how it works - HTML for semantics and CSS for presentation. There are, however, semantics for the things found in the CSS "language". That's not semantics of the document, but rather, semantics of how those things will cause the browser to render the document. |
|
Maybe this has been the difference; you're referring to the semantics of the document, |
|
and I'm referring to the semantics of the specifications. It's the specifications that I'm having so much trouble with right now, so that is what I am focusing on. |
|
So why is there "table" in HTML _and_ "table" in CSS? Is "table" a kind of presentation? Someone thought so if they put it in CSS. |
#99
| |||
| |||
|
|
And I finally got things to work right with CSS tables, at least in Firefox. |
#100
| |||||||||||||||||||
| |||||||||||||||||||
|
|
phil-news-nospam (AT) ipal (DOT) net wrote: On Sat, 06 May 2006 18:48:03 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: | phil-news-nospam (AT) ipal (DOT) net wrote: |>On Sat, 06 May 2006 10:38:02 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>| phil-news-nospam (AT) ipal (DOT) net wrote: |>|>On Fri, 05 May 2006 19:37:07 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>|>| phil-news-nospam (AT) ipal (DOT) net wrote: |>|>|>On Fri, 05 May 2006 08:10:01 +0100 Steve Pugh <steve (AT) pugh (DOT) net> wrote: |>| | A table means that certain alterations of the data and markup aren't | permitted. i.e. you can't swap row 2, column 3 with row 3, column 5. | The fact that this leads to certain presentational constraints in | certain media is a consequence not a starting point. It's the consequence I want. I don't know why you though I meant it was a starting point. Because the appearance seems to be all you care about. So it seems to be both the start and the end. |
|
|> What term would you use for data that |>is not tabular in nature, but requires exactly the same presentation? | | Maybe I'd call it an image? On the WWW I'd almost certainly call it | broken. Why would it be broken? Because the WWW is media independent and if a certain exact presentation is required then that is something that can not exist on the WWW. What does your grid look like in an aural browser? |
|
I see no reason to have a constraint on _what_ you can put in a table. If it's a number, fine. If it's a block text, why should that matter? Anything can go into a table so long as it's tabular data. That can be text, images, anything. So long as it has a relationship with the other items of data in the same row and column then it's tabular data. |
|
Who ever suggested that it can't be a block of text? |
|
|>If the semantics of a grid is only about presentation, then it is an |>incomplete statement about what I want to have in my layout. | | Could you try that sentence again in English? The grid has no | semantics, and semantics are never about presentation so the first | clause is hopeless, and I'm not sure which statement you are referring | to in the second clause. We clearly are NOT think of the same thing with the word "grid". The second definition at http://www.answers.com/grid&r=67 works for me: "Something resembling a framework of crisscrossed parallel bars, as in rigidity or organization" |
|
|>Certainly a grid presentation is still a grid presentation if the cells |>of a table are randomly scattered about, and the dimensions are not the |>same between the grid and the table. | | Sorry, I think I need an example. It's like a table, with no required relationships. Bingo. That's the context I've been using it in this thread. Like a 2d representation of a table in presentation, but without the table semantics. |
|
It's when you put the two together you get all the semantics combined. Eh? Put what two together? A grid and a table? A grid, as we are using the word here, is a presentation, it has no semantics. |
|
A table has semantics, but I thought that you wanted something with the typical table presentation in 2d media (i.e. a grid) but with some different semantics that you stubbornly refuse to elucidate. |
|
Of course since you don't recognize the word "grid" the way I do, this won't mean anything to you. What makes you think I don't recognise the word grid? I've see it often enough in your recent posts. I've used in my posts, despite your insinuations above you and I have been using grid with the same meaning as far as I can see. |
|
You're rapidly approaching Luigi levels of obliviousness. |
|
|>I wasn't talking about just presentation in _my_ semantics of a grid. | | Then what are the semantics of your grid? Without referencing anything | to do with the presentation please explain what semantics your 'grid' | has. What does the 'grid' mean? This meaning should be invariant of | the media used to present the 'grid' so it must remain the same when | presented aurally for example. The grid is a 2 dimensional structure, primarily whole in both dimensions (e.g. no columns with fewer rows and no rows with fewer columns). We've already established the presentation of a grid. No need to repeat it again. But that still doesn't explain what semantics you think a grid has, all you've done here is explain, yet again, is give the presentation. |
|
What does a grid mean? Not what does it look like. What does it mean? |>But because you aren't willing to understand what _my_ semantics are, | | I'm very willing, but other than saying that you want the same | presentation as a table you haven't been willing to say what your | requirements are. I want what I get with TABLE/TR/TD. You get the presentation you want. We established that about a dozen posts ago. But what are the semantics that you want? |
|
|>I'm faced with the challenge of finding a term within your vocabulary |>that does have the semantics I want. I'm not sure there is one, but |>the term table is the closest I can think of at the moment. | | Grid seems to be doing just fine. You want the a rigid grid for | presentation purposes. That is clear. You also seem to think that this | rigid grid has some form of semantics ina ddition to its | presentational apsects but you haven't elaborated on what these | semantics are. | | What does <grid>data</grid> mean that plain data does not mean? I have no idea what you are trying to refer to. p>data</p> has the semantics that the data is a paragraph, i.e. a self contained block of text normally concerned with a single topic. h1>data</h1> has the semantics that the data is a level one heading. td>data</td> has the semantics that the data is a cell in a table, with relationships to the other cells in the same row and column. So, what are the semantics of a grid? What would a hypothetical grid>data</grid> element say about the data? That's what we have been trying to establish all along, what are the semantics that you want to give to your data? |
|
| All the rest of this sound and fury has been a struggle to understand | what you mean by semantics (as it is clear that you do not mean what | the rest of us mean) and what these 'semantics' of a grid are, once we | understand what the semantics you require are can suggest the most | appropriate HTML to convey those semantics, and then we can apply CSS | on top of that to give you the rigid grid presentation. | | That's how it works - HTML for semantics and CSS for presentation. There are, however, semantics for the things found in the CSS "language". That's not semantics of the document, but rather, semantics of how those things will cause the browser to render the document. The "semantics" of the CSS display: table-* properties are "make this look _like_ a typical 2d rendering of a table". |
|
Maybe this has been the difference; you're referring to the semantics of the document, What else would I be referring to in the context of authoring for the WWW? |
|
and I'm referring to the semantics of the specifications. It's the specifications that I'm having so much trouble with right now, so that is what I am focusing on. HTML is for semantics. CSS is for presentation. |
|
So why is there "table" in HTML _and_ "table" in CSS? Is "table" a kind of presentation? Someone thought so if they put it in CSS. The table in HTML is to markup data with table semantics. The table in CSS is to markup data with table like presentation. |
|
The built in style sheets in browsers give CSS table presentation to HTML tables, so you don't need to specify the CSS itself in your author stylesheet. But if you want to create something that looks like a table, but isn't, semantically speaking, a table you use the CSS to give the table presentation to some other HTML element - one who's semantics does match the data in question. |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
![]() |
| Thread Tools | |
| Display Modes | |
| |