![]() | |
#11
| |||
| |||
|
|
Show me CSS2 coding that will produce tables with the same semantics that TABLE/TR/TD has, and maybe I could believe it's an implementatuon issue. |
#12
| |||
| |||
|
|
|> rule. In some cases background colors are _content_. One example |> is the red and black colors of a Chess board. Sure, someone could | Odd, most of the (real) chessboards I've seen are yellow and | black. Maybe it varies from place to place. I've seen a couple like that. But virtually all are red and black. |
#13
| |||||
| |||||
|
|
On 30 Apr 2006 19:26:38 +0100 Chris Morris <c.i.morris (AT) durham (DOT) ac.uk> wrote: | Odd, most of the (real) chessboards I've seen are yellow and | black. Maybe it varies from place to place. I've seen a couple like that. But virtually all are red and black. |

|
|> if I am going to lay out a grid structure as a Chess board, you can |> bet I'm going to set the colors in the HTML tags. | | I can't imagine a situation where HTML-based colour setting would be | more reliable than CSS-based colour setting in such a situation, with | modern browsers at least - every graphical browser I know with an | "ignore CSS" option also has some form of "ignore colours" option. If | the colour is truly part of the content then perhaps an image (with | suitable text alternative) is the better way to provide the | information? So how should the image be done? Don't forget it will be background. There may be an image and/or text placed over it. |
|
|> And I'm not going to use "float:left" to layout a Chess board, either. | | I'd have thought a chess board was certainly tabular data. It probably comes down to what people see as tabular and not tabular. |
|
When I want to align a set of boxes to hold blocks of text, such as news items, I tend to want the behaviour TABLE/TR/TD bring, rather than the behaviour I get with DIV+float. |
|
| Does IE7 support 'position: table-*'? That gives much the same layout | options but doesn't interfere with table-reading mode so much. (Of | course, even if it does, it'll be a couple of years before it's | generally usable) I have no idea. No IE running here of any version right now. |
#14
| |||||||
| |||||||
|
|
phil-news-nospam (AT) ipal (DOT) net writes: On 30 Apr 2006 19:26:38 +0100 Chris Morris <c.i.morris (AT) durham (DOT) ac.uk> wrote: | Odd, most of the (real) chessboards I've seen are yellow and | black. Maybe it varies from place to place. I've seen a couple like that. But virtually all are red and black. I'm not sure I've seen any red and black ones. Maybe you should use CSS and let people select their own preferred chess-board colours with alternative stylesheets. ![]() |
|
|> if I am going to lay out a grid structure as a Chess board, you can |> bet I'm going to set the colors in the HTML tags. | | I can't imagine a situation where HTML-based colour setting would be | more reliable than CSS-based colour setting in such a situation, with | modern browsers at least - every graphical browser I know with an | "ignore CSS" option also has some form of "ignore colours" option. If | the colour is truly part of the content then perhaps an image (with | suitable text alternative) is the better way to provide the | information? So how should the image be done? Don't forget it will be background. There may be an image and/or text placed over it. Well, again, CSS is not going to be more or less 'reliable' than HTML at positioning and providing the image (though CSS has more options). |
|
I'm having trouble thinking of a situation where you'd want a background image of a chessboard (or a background grid in checkerboard colours with the exact colour crucial) with text and images superimposed. Could you give a bit more detailed example (with a URL if you can) of the sort of thing you mean? |
|
|> And I'm not going to use "float:left" to layout a Chess board, either. | | I'd have thought a chess board was certainly tabular data. It probably comes down to what people see as tabular and not tabular. Well, when I sketch chessboards out on paper, they end up as a grid rather than linearised, which suggests a table. The 2-D relationship of the squares and pieces is crucial to understanding the position. |
|
When I want to align a set of boxes to hold blocks of text, such as news items, I tend to want the behaviour TABLE/TR/TD bring, rather than the behaviour I get with DIV+float. Whereas if I was writing a news item with a pencil (or for an email) I probably wouldn't be so concerned with the layout as long as it was in the right 1-D order. That's not to say a set of news items can't be expressed sensibly in a table - it depends how the data for each news item is divided. |
|
| Does IE7 support 'position: table-*'? That gives much the same layout | options but doesn't interfere with table-reading mode so much. (Of | course, even if it does, it'll be a couple of years before it's | generally usable) I have no idea. No IE running here of any version right now. Well, if IE is out of the equation, and you only want the grid for visual presentation, you might as well use position: table-* |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#15
| |||
| |||
|
|
phil-news-nospam (AT) ipal (DOT) net wrote: Show me CSS2 coding that will produce tables with the same semantics that TABLE/TR/TD has, and maybe I could believe it's an implementatuon issue. _Semantics_ are defined by HTML, not CSS: If you have tabular data and so table semantics are appropriate, use the table element and its companions. CSS however defines table-like _presentation_ characteristics. See the chapter about tables in the CSS 2(.1) spec. |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#16
| |||
| |||
|
|
On Mon, 1 May 2006, phil-news-nospam (AT) ipal (DOT) net wrote: Show me CSS2 coding that will produce tables with the same semantics that TABLE/TR/TD has, and maybe I could believe it's an implementatuon issue. You're not making any kind of sense. The defined semantics of HTML are what the HTML specification (for all its faults and weaknesses) defines them to be. They don't change merely by fiddling around with implementations of CSS. |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#17
| |||
| |||
|
|
On 01 May 2006 12:41:20 +0100 Chris Morris <c.i.morris (AT) durham (DOT) ac.uk> wrote: | I'm having trouble thinking of a situation where you'd want a | background image of a chessboard (or a background grid in checkerboard | colours with the exact colour crucial) with text and images | superimposed. Could you give a bit more detailed example (with a URL | if you can) of the sort of thing you mean? You want to color in CSS. Be my guest. Show how. But show CSS that can be used with any chess board in tables where only the table element has a class on it. |
#18
| ||||
| ||||
|
|
On 01 May 2006 12:41:20 +0100 Chris Morris <c.i.morris (AT) durham (DOT) ac.uk> wrote: | Maybe you should use CSS and let people select their own preferred | chess-board colours with alternative stylesheets. ![]() Fine. Show how. |
|
| Well, again, CSS is not going to be more or less 'reliable' than HTML | at positioning and providing the image (though CSS has more options). But how well can CSS choose which squares to color? If the browser supports :first-child then you can color the top and left ones different. |
|
| Well, when I sketch chessboards out on paper, they end up as a grid | rather than linearised, which suggests a table. The 2-D relationship | of the squares and pieces is crucial to understanding the position. However, the "CSS people" still often whine about the use of tables for stuff that needs to be 2-D. |
|
| Whereas if I was writing a news item with a pencil (or for an email) I | probably wouldn't be so concerned with the layout as long as it was in | the right 1-D order. | | That's not to say a set of news items can't be expressed sensibly in a | table - it depends how the data for each news item is divided. Within an item, sure, it would basically be 1-D. But when categorizing items, and ordering them by some priority or date, then you may want a grid structure. And tables seems nature for it. |
#19
| |||
| |||
|
|
It probably comes down to the fact that my intentions in a grid structure do match the semantics of a table and tabular data. |
#20
| |||
| |||
|
|
phil-news-nospam (AT) ipal (DOT) net wrote: On 01 May 2006 12:41:20 +0100 Chris Morris <c.i.morris (AT) durham (DOT) ac.uk> wrote: | I'm having trouble thinking of a situation where you'd want a | background image of a chessboard (or a background grid in checkerboard | colours with the exact colour crucial) with text and images | superimposed. Could you give a bit more detailed example (with a URL | if you can) of the sort of thing you mean? You want to color in CSS. Be my guest. Show how. But show CSS that can be used with any chess board in tables where only the table element has a class on it. A somewhat artificial restriction but here you go: http://steve.pugh.net/test/chessboard.html |
|
Works in Opera and FireFox and IE7, I presume it will work in Safari. As in many situations, IE6 and lower are the problem, not the CSS spec. The amount of code can be reduce consideranly if you would allow classes to be set on the <tr> elements. |
|
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 | |
| |