![]() | |
#71
| |||||||
| |||||||
|
|
I don't see _anyone_ doing any layout that gets what I want to have who uses anything but tables. People have suggested things before and it did not work (not same semantics ... stuff like rightmost column falls down to left side, which is unacceptable). |
etc. there are different ways. Now what is best,|
Some issues exist: 1. Text falls outside of these boxes, but does not with tables. Maybe that's another property that table/tr/td defaults to that you could add. |
|
2. The content producer (that does not produce the CSS) decides how many columns of data there are (it's the content the user selects). 3. There's no savings here. That's been touted as _one_ reason to use CSS. But I don't see it. You have as many elements as I would just named different, and with classes. |
|
| How does your ROWS and colums relate in tables, what relation that data in | there has? That depends one which things I'm doing. Where there are multiple rows, each item (cell) needs to be under the others of the same column. Where there are not, it's basically just one row of N columns to stop flow of blocks onto the row below. |
|
But As I said earlier, I don't see the gain in using 3 different elements for 3 elements I already use. But the real point here is, if you can do exactly what TABLE/TR/TD does with DIV/DIV/DIV then you've also shown that having TABLE/TR/TD in HTML is unnecessary (and I would expect to see you urge that they be depricated from the standard). |
|
I missed that one. |
|
But I'm still focusing my work on other aspect of the design right now. This is generated HTML, so I've got to get all aspects of the coding just right on the context of the coming variations in content. |
Maybe kicking and screaming about
#72
| |||||||||||
| |||||||||||
|
|
phil-news-nospam (AT) ipal (DOT) net> kirjoitti viestiss?:e3e5sd01b9q (AT) news1 (DOT) newsguy.com... snip I don't see _anyone_ doing any layout that gets what I want to have who uses anything but tables. People have suggested things before and it did not work (not same semantics ... stuff like rightmost column falls down to left side, which is unacceptable). And you can prevent it if you actually wan't, because I prefer layout to be fluid wien it comes to colums which only "relation" is that you want them presented (no relation in data of the columns itself) side by side instead being fluid so that's why I don't do that in example. I don't see it to be unacceptable in this case because there is not any relation for the data you have in columns, atleast not currently. |
|
Too bad internet explorer do not support min-width: but there are other ways to prevent it too. Use width for the body, or h1, or add maybe one more container with width set so wide things dont mess up, or use one line gif (with "minumum" acceptable width for all columns combined (for IE to get by the missing min-width etc. there are different ways. Now what is best,that is not something I will say a thing, because I like content to be fluid unless design itself is "fixed width" and I try avoid such designs when ever I can. |
|
Some issues exist: 1. Text falls outside of these boxes, but does not with tables. Maybe that's another property that table/tr/td defaults to that you could add. one way is min-width: to sent minimum acceptable width for those things. But don't work for IE. Again there are work arounds for that, but what's good or proper, that's entirely different matter... |
|
2. The content producer (that does not produce the CSS) decides how many columns of data there are (it's the content the user selects). 3. There's no savings here. That's been touted as _one_ reason to use CSS. But I don't see it. You have as many elements as I would just named different, and with classes. Yes there are actually less when you remove tables, depends how complex use of tables there is, your tables are simple so there's not that much difference. But that is not the point. Point is to use structures that have semantical meaning. |
|
Like those unordered lists, headings etc. Then use CSS to tweak their presentation in way you want to show em. |
|
It's like when you write Document, you should use elements that have semantical meaning, like Headings for Headings (in html H1 as whole document heading, H2 as headings under it, H3 for headings that are under H3 etc.), not just use paragraph for heading and style it to look like heading. See, idea is to use elements that have certain semantical meaning for the content. Headings are headings, lists are, well lists, paragraphs of text are paragraphs etc. And when there's no proper thing to use, then there's DIV and SPAN... |
|
That depends one which things I'm doing. Where there are multiple rows, each item (cell) needs to be under the others of the same column. Where there are not, it's basically just one row of N columns to stop flow of blocks onto the row below. So data itself has no relation, you only use table for layout. |
|
But As I said earlier, I don't see the gain in using 3 different elements for 3 elements I already use. But the real point here is, if you can do exactly what TABLE/TR/TD does with DIV/DIV/DIV then you've also shown that having TABLE/TR/TD in HTML is unnecessary (and I would expect to see you urge that they be depricated from the standard). No, I say that you should use _elements_ that are _semantical_ for the purpose. Like those mentioned headings for headings, lists for lists etc. Table will not be unnecessary, it has it's semantical meaning too, not to use it for layout, but for tabular data. Table represent relationships between data. |
|
I missed that one. Easy to miss things sometimes, been doing whole night C# coding and was refactoring some earlier code. Plenty of lines that I had done some point earlier, happily reinventing some wheels when there were already stuff on .NET for that purpose. I was feeling like kicking my self plenty of times just because I had originally missed those things, heh. Just gotta try remember next time and keep on trying to learn more. Sad part is that more one learn, more one feel like knowing nothing. Always find more new things to learn than manage to learn. |
|
But I'm still focusing my work on other aspect of the design right now. This is generated HTML, so I've got to get all aspects of the coding just right on the context of the coming variations in content. Well, you'll get there some point Maybe kicking and screaming aboutHTML/CSS and them having no "use" ![]() Anyway, I hope you get what I am trying to say, about using semantically meaningful stuff. It's 6am and haven't yet got any sleep (but plan to have some now) so might be rather rambling state... |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#73
| ||||
| ||||
|
|
Deciding to do something for the good of humanity, phil-news-nospam (AT) ipal (DOT) net> declared in comp.infosystems.www.authoring.stylesheets: I don't want to use an image there. I want something very tiny. So use a tiny image. ;-) |
|
The dash did the job just fine. As Wyrm said, just put the dash in the text as you are now, or add it with CSS (with the caveat that IE doesn't support it). My "semantics of a list" does not require a bullet. Well, really you want a bullet that looks like a dash instead of a disc. |
|
That's not so much of a departure from an ordered list that gets numbered. I see the choice of bullet, or numbers, or nothing at all, a presentation issue, anyway. The actual style of the bullet or number is certainly a presentation issue, yes. However there is a semantic difference between bullets and numbers, i.e. an unordered list and an ordered list - in the former, the order of the list items is irrelevant, in the latter, the order does matter. A recipe is a prime example - the list of ingredients can be in any order, but the steps in the method need to be in the correct order. |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#74
| |||
| |||
|
|
So if an implementation were to re-arrange the order of items given in a list with UL/LI, that would be OK? |
#75
| |||
| |||
|
|
Anyway, I hope you get what I am trying to say, about using semantically meaningful stuff. It's 6am and haven't yet got any sleep (but plan to have some now) so might be rather rambling state... |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#76
| |||
| |||
|
|
On Thu, 04 May 2006 12:19:00 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote: | phil-news-nospam (AT) ipal (DOT) net wrote: |> On Thu, 04 May 2006 10:08:09 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote: |> | phil-news-nospam (AT) ipal (DOT) net wrote: |> | |> |> On Wed, 03 May 2006 23:50:16 +0200 Johannes Koch <koch (AT) w3development (DOT) de> wrote: |> |> | 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. |> | |> | Where can you quote me? | |> In Message-ID: <4459273d$0$11086$892e7fe2 (AT) authen (DOT) yellow.readfreenews.net |> All those short answers. | | You said: | And a table is a structure. Of course its presentation can be styled, | too. | | I responded: | Yes. | | You said: | So for the structure, I should use HTML. Then for the appearance use | CSS. That's what I thought all along. | | I responded: | Yes | | You said: | And I can change how table/tr/td presented, too. | But I still use table/tr/td to define the structure. | | I responded: | Yes | | | Now, why is that flip flop? You said in a previous post: 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. I don't know about equal height bit, though that would be expected in a grid structure. The "data" I have is blocks of text. It's not what people refer to as "tabular data" (like you might find in a spreadsheat as one person described it). Instead, it is a grid organization of sections of data, pretty forcing a specific set of columns. But all the semantics are still the same as what TABLE/TR/TD and friends provide, and not what any other method provides (certainly not float:left). So unless your definition of "tabular data" doesn't follow the norm, this does come across as a flip-flop. But looking over all your postings, it certain does seem you may have a different definition of things like "tabular data". |
#77
| |||
| |||
|
|
So how would you do the following? You have a list of stuff, maybe a lot. The list is to be presented where each row alternates between white and light green. But the list is being produced by some database program you cannot change. So whatever HTML element it uses, it's identical for every row generated. I saw the + used on selectors to accomplish that effect for a chessboard (I had replied to that with "gross"). But you could not really use that here because this list might have thousands of rows. Of course, it would be nicer to have the rows generated with some kind of even/odd class names so it can be done with 2 selectors. |
#78
| |||
| |||
|
|
Consider your blocks of text that you want to arrange in a grid. Now take the block of text that's at the intersection of the third row and the second column. What does that fact that it's at that intersection _mean_? In a table it means something. e.g. it means that it's the printer sales figure for France (row) in May 2005 (column); or that the black queen is on square C6 (which is why I think the chessboard is a valid table). But it just means that this block of text is in the third row and the second column, then there are no table semantics. And hence HTML tables should not be used, but CSS display: table-* can be used to give the appearance a table like grid effect. 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. One way to decide whether your data belongs in a table or not is to consider whether every row and column could be given a heading, i.e. could you include a <th> for each row and column? One that will be meaningful, so that if an aural browser read out [heading for row 3, heading for column 2, content of cell at intersection of row 3 and column 2] it would make sense. It's not always necessary to then go and put these headings in the page (though it's usually a very good idea to do so) but if you don't have any headings for your rows or columns then there's a good chance that semantically you don't have a data table and hence you should be looking at CSS tables not HTML tables. |
|
Of course this is somewhat academic as IE6 doesn't support CSS tables, so if your design really demands a grid then you must either abuse HTML tables or change the design. |
#79
| |||||||
| |||||||
|
|
Consider your blocks of text that you want to arrange in a grid. Now take the block of text that's at the intersection of the third row and the second column. What does that fact that it's at that intersection _mean_? |
|
In a table it means something. e.g. it means that it's the printer sales figure for France (row) in May 2005 (column); or that the black queen is on square C6 (which is why I think the chessboard is a valid table). But it just means that this block of text is in the third row and the second column, then there are no table semantics. And hence HTML tables should not be used, but CSS display: table-* can be used to give the appearance a table like grid effect. |
|
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. |
|
One way to decide whether your data belongs in a table or not is to consider whether every row and column could be given a heading, i.e. could you include a <th> for each row and column? |
|
One that will be meaningful, so that if an aural browser read out [heading for row 3, heading for column 2, content of cell at intersection of row 3 and column 2] it would make sense. It's not always necessary to then go and put these headings in the page (though it's usually a very good idea to do so) but if you don't have any headings for your rows or columns then there's a good chance that semantically you don't have a data table and hence you should be looking at CSS tables not HTML tables. |
|
Of course this is somewhat academic as IE6 doesn't support CSS tables, so if your design really demands a grid then you must either abuse HTML tables or change the design. |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#80
| |||
| |||
|
|
Deciding to do something for the good of humanity, phil-news-nospam (AT) ipal (DOT) net> declared in comp.infosystems.www.authoring.stylesheets: So if an implementation were to re-arrange the order of items given in a list with UL/LI, that would be OK? It shouldn't matter, no. For example a UA could (theoretically) provide the ability to automatically sort list items in alphabetical order. For an unordered list that would be fine. For an ordered list it wouldn't. |
|
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 | |
| |