Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Question about DIV instead of Table

Reply
Thread Tools

Question about DIV instead of Table

 
 
nickolas80@gmail.com
Guest
Posts: n/a
 
      09-21-2005
Since layers are becoming the more widely accepted method of site
layout, I have a quesiton..

If you had some data that you wanted to display in this format:

DATA1 DATA2
DATA3 DATA4

Would each data be it's own DIV?

 
Reply With Quote
 
 
 
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      09-21-2005

<> skrev i meddelandet
news: oups.com...
> Since layers are becoming the more widely accepted method of site
> layout, I have a quesiton..
>
> If you had some data that you wanted to display in this format:
>
> DATA1 DATA2
> DATA3 DATA4
>
> Would each data be it's own DIV?



But if we used DIV also for the data when should we still use tables?
Should we abolish them?

--
Luigi Donatello Asero
(sono italiano ma vivo in Svezia)
(я итальянец но я живу в Швеции )
(我是 意大利人 , 但是 我 住 在 瑞典)
(minä olen Italian kansalainen, mutta minä asun Ruotsissa)
https://www.scaiecat-spa-gigi.com/





 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      09-21-2005
wrote:

> If you had some data that you wanted to display in this format:
> DATA1 DATA2
> DATA3 DATA4
> Would each data be it's own DIV?


That depends on what the data *is*. HTML is designed to describe semantics
and structure, not layout. Its impossible to say what markup should be
until you know what semantics and structure you are trying to describe.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Travis Newbury
Guest
Posts: n/a
 
      09-21-2005
wrote:
> Since layers are becoming the more widely accepted method of site
> layout, I have a quesiton..


That statement is not true at all.

> If you had some data that you wanted to display in this format:
> DATA1 DATA2
> DATA3 DATA4


That's what a table is for.

--
-=tn=-
 
Reply With Quote
 
dingbat@codesmiths.com
Guest
Posts: n/a
 
      09-21-2005
wrote:
> Since layers are becoming the more widely accepted method of site
> layout,


Layers have been obsolete for years.


> If you had some data that you wanted to display in this format:
>
> DATA1 DATA2
> DATA3 DATA4
>
> Would each data be it's own DIV?


They'd probably be in a <table> and each its own <td> If your "data"
has any reasonable claim to be "tabular", then just use the <table>

 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      09-21-2005
With neither quill nor qualm, quothed:

> Since layers are becoming the more widely accepted method of site
> layout, I have a quesiton..
>
> If you had some data that you wanted to display in this format:
>
> DATA1 DATA2
> DATA3 DATA4
>
> Would each data be it's own DIV?


That almost entirely depends on the data. At a guess, I'd say no, but
anything else on the page has an influence to the optimal layout, too.

--
Neredbojias
Contrary to popular belief, it is believable.
 
Reply With Quote
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      09-21-2005

"Travis Newbury" <> skrev i meddelandet
news:lX8Ye.767$...
> wrote:
> > Since layers are becoming the more widely accepted method of site
> > layout, I have a quesiton..

>
> That statement is not true at all.
>
> > If you had some data that you wanted to display in this format:
> > DATA1 DATA2
> > DATA3 DATA4

>
> That's what a table is for.


Fine.
So, do you think that the table on the page
https://www.scaiecat-spa-gigi.com/index.php
is appropriate or not?
The column on the left displays pictures and the one on the right displays a
text which is connected with these pictures.


--
Luigi Donatello Asero
(sono italiano ma vivo in Svezia)
(я итальянец но я живу в Швеции )
(我是 意大利人 , 但是 我 住 在 瑞典)
(minä olen Italian kansalainen, mutta minä asun Ruotsissa)
https://www.scaiecat-spa-gigi.com/





 
Reply With Quote
 
Arne
Guest
Posts: n/a
 
      09-21-2005
Once upon a time *Luigi Donatello Asero* wrote:
> "Travis Newbury" <> skrev i meddelandet
> news:lX8Ye.767$...
>> wrote:
>> > Since layers are becoming the more widely accepted method of site
>> > layout, I have a quesiton..

>>
>> That statement is not true at all.
>>
>> > If you had some data that you wanted to display in this format:
>> > DATA1 DATA2
>> > DATA3 DATA4

>>
>> That's what a table is for.

>
> Fine.
> So, do you think that the table on the page
> https://www.scaiecat-spa-gigi.com/index.php
> is appropriate or not?
> The column on the left displays pictures and the one on the right displays a
> text which is connected with these pictures.


No, that is content layout that should be added with CSS and div's.

This is data, what tables are for:

/-----------------------------------------\
| | Average | Red |
| |-------------------| eyes |
| | height | weight | |
|-----------------------------------------|
| Males | 1.9 | 0.003 | 40% |
|-----------------------------------------|
| Females | 1.7 | 0.002 | 43% |
\-----------------------------------------/

Also this is data, suitable for a table:

TABELL S V O F +/- P
1. Syrianska IF 13 11 2 0 68 - 14 35
2. SS Gbg Jun 15 9 4 2 53 - 18 31
3. GIF Enosis 14 6 4 4 33 - 29 22
4. FC K-Pero 14 6 1 7 29 - 38 19
5. Skogshyddan 15 6 1 8 24 - 44 19
6. Real Maskin 13 4 4 5 24 - 35 16
7. BK Wobbler 14 4 2 8 16 - 38 14
8. Olskrokens 15 3 4 8 29 - 46 13
9. Käringöns FC 15 2 4 9 27 - 41 10

--
/Arne
Now killing all posts originating at GoogleGroups
Workaround: http://www.safalra.com/special/googlegroupsreply/
 
Reply With Quote
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      09-21-2005

"Arne" <> skrev i meddelandet
news:...
> Once upon a time *Luigi Donatello Asero* wrote:
> > "Travis Newbury" <> skrev i meddelandet
> > news:lX8Ye.767$...
> >> wrote:
> >> > Since layers are becoming the more widely accepted method of site
> >> > layout, I have a quesiton..
> >>
> >> That statement is not true at all.
> >>
> >> > If you had some data that you wanted to display in this format:
> >> > DATA1 DATA2
> >> > DATA3 DATA4
> >>
> >> That's what a table is for.

> >
> > Fine.
> > So, do you think that the table on the page
> > https://www.scaiecat-spa-gigi.com/index.php
> > is appropriate or not?
> > The column on the left displays pictures and the one on the right

displays a
> > text which is connected with these pictures.

>
> No, that is content layout that should be added with CSS and div's.
>
> This is data, what tables are for:
>
> /-----------------------------------------\
> | | Average | Red |
> | |-------------------| eyes |
> | | height | weight | |
> |-----------------------------------------|
> | Males | 1.9 | 0.003 | 40% |
> |-----------------------------------------|
> | Females | 1.7 | 0.002 | 43% |
> \-----------------------------------------/
>
> Also this is data, suitable for a table:
>
> TABELL S V O F +/- P
> 1. Syrianska IF 13 11 2 0 68 - 14 35
> 2. SS Gbg Jun 15 9 4 2 53 - 18 31
> 3. GIF Enosis 14 6 4 4 33 - 29 22
> 4. FC K-Pero 14 6 1 7 29 - 38 19
> 5. Skogshyddan 15 6 1 8 24 - 44 19
> 6. Real Maskin 13 4 4 5 24 - 35 16
> 7. BK Wobbler 14 4 2 8 16 - 38 14
> 8. Olskrokens 15 3 4 8 29 - 46 13
> 9. Käringöns FC 15 2 4 9 27 - 41 10
>
> --



I think that this is the biggest question of all the ones which we have
discussed today.
The examples which you gave display data, no doubt about that.
But, as far as I remember, there had been someone else in this NG thinking
that even descriptions of photos are data.
Other contributions to this matter will be appreciated.
By the way, I changed from frames into tables into DIV and CSS..
--
Luigi Donatello Asero
(sono italiano ma vivo in Svezia)
(я итальянец но я живу в Швеции )
(我是 意大利人 , 但是 我 住 在 瑞典)
(minä olen Italian kansalainen, mutta minä asun Ruotsissa)
https://www.scaiecat-spa-gigi.com/




 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      09-21-2005
Luigi Donatello Asero wrote:

> But, as far as I remember, there had been someone else in this NG thinking
> that even descriptions of photos are data.


They can be:

<thead>
<tr>
<th scope="col">Image</th>
<th scope="col">Caption</th>
</tr>
</thead>

*Generally* speaking, if you have at least two columns and can put a
(sensible) heading on all of them, then its tabular data.


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding part of table dynamically with javascript - IE6 does notsupport div inside table. jc HTML 10 06-30-2009 07:24 PM
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
All browsers are cool but IE: div, form, table, input.. where's the table? Sundew Shin Javascript 5 06-02-2006 02:21 AM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57