Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   Making a table with divs (http://www.velocityreviews.com/forums/t164814-making-a-table-with-divs.html)

Paul B 04-13-2006 09:07 PM

Making a table with divs
 
I understand that using tables is not the 'correct' way to create a
webpage layout, so I wondered what the general consensus is on using
div tags to 'simulate' a table:
http://seventynine.net/testing/test01.html

It is a very very basic example but I'm sure anyone who has made a
layout with a table can see the point behind it.

rtconner 04-13-2006 09:12 PM

Re: Making a table with divs
 
Uhm.. It doesn't work in IE.

And if you ask me, a table does the job just fine, so why would you try
to imitate a table when you can just use the actaul thing. And DIV have
many uses, but this, IMO is not one of them.


Barbara de Zoete 04-13-2006 09:16 PM

Re: Making a table with divs
 
On Thu, 13 Apr 2006 23:07:11 +0200, Paul B <dfmmm3m3o4@seventynine.net>
wrote:

> I understand that using tables is not the 'correct' way to create a
> webpage layout, so I wondered what the general consensus is on using
> div tags to 'simulate' a table:
> http://seventynine.net/testing/test01.html


If you really are serious about leaving tables as a method you use for
page layout, you should also let go of the 'concept of a table' that is in
your mind. This page is a lovely example of how the tables are something
that is very stuck in your head at the moment.

Create your content. Mark it up properly. That is a heading is a heading,
a paragraph is a paragraph, a table *is* a table. Et cetera. See what you
can do with all the elements you have in your page once it is marked up
properly. You possibly need one or two more handles (to seperate the main
content from, say, teh navigation meny), but you'll be amazed what you can
achieve with all there already is in your page.

> It is a very very basic example but I'm sure anyone who has made a
> layout with a table can see the point behind it.


There is no point actually. All those divs. Forget tables and start doing
things properly.


--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |

Paul B 04-13-2006 09:17 PM

Re: Making a table with divs
 
On 13 Apr 2006 14:12:52 -0700
"rtconner" <rtconner@gmail.com> wrote:

> Uhm.. It doesn't work in IE.
>
> And if you ask me, a table does the job just fine, so why would you
> try to imitate a table when you can just use the actaul thing. And
> DIV have many uses, but this, IMO is not one of them.
>


Ahh, I've not got IE. The table does do it fine but most people seem to
think the layout of a page shouldn't be done with a table so I was
thinking of a way to not use one... I think I'll just go back to
inventing square wheels for my car.

Good Man 04-13-2006 09:19 PM

Re: Making a table with divs
 
Paul B <dfmmm3m3o4@seventynine.net> wrote in news:20060413220711.3a2d7045
@pear.mshome.net:

> I understand that using tables is not the 'correct' way to create a
> webpage layout, so I wondered what the general consensus is on using
> div tags to 'simulate' a table:
> http://seventynine.net/testing/test01.html
>
> It is a very very basic example but I'm sure anyone who has made a
> layout with a table can see the point behind it.


You are correct in stating that using tables for webpage layout is not
preferred. However, tables are still the preferred choice in displaying
tabular data (ie: charts, etc)

I see what you're doing in your example, but I don't know how really
useful it is. Your code does indeed simulate a table using CSS.
However, a great deal of the 'exercise' in moving away from table-based
layout is moving away from the table-based *concept*, not just the table
tags themselves.

For example, if I only wanted content to appear in your 'cell' called
"Bottom right", there is no way I should be required to contemplate
anything else - i would use one div only, and use CSS to specify how I
want content presented/laid out.

Good exercise in scripting/simulating a table, but sort of missing the
concept of CSS itself in my humble opinion....




Good Man 04-13-2006 09:22 PM

Re: Making a table with divs
 
"rtconner" <rtconner@gmail.com> wrote in news:1144962772.384111.295510
@z34g2000cwc.googlegroups.com:

> Uhm.. It doesn't work in IE.
>
> And if you ask me, a table does the job just fine, so why would you try
> to imitate a table when you can just use the actaul thing. And DIV have
> many uses, but this, IMO is not one of them.


hi, time to be bitchy...

what is your post referring to? you should quote posts that you are
replying to. it makes it much easier to understand and follow the thread.

rtconner 04-13-2006 09:54 PM

Re: Making a table with divs
 
>hi, time to be bitchy...
>
>what is your post referring to? you should quote posts that you are
>replying to. it makes it much easier to understand and follow the thread.


sorry then. I don't post much and am not fully acquanted with proper
practice and proceedure. that was just a response to the original post.
show below.

>I understand that using tables is not the 'correct' way to create a
>webpage layout, so I wondered what the general consensus is on using
>div tags to 'simulate' a table:
>http://seventynine.net/testing/test01.html
>
>It is a very very basic example but I'm sure anyone who has made a
>layout with a table can see the point behind it.



Jonathan N. Little 04-13-2006 10:36 PM

Re: Making a table with divs
 
Paul B wrote:
> I understand that using tables is not the 'correct' way to create a
> webpage layout, so I wondered what the general consensus is on using
> div tags to 'simulate' a table:
> http://seventynine.net/testing/test01.html
>
> It is a very very basic example but I'm sure anyone who has made a
> layout with a table can see the point behind it.


I am absolutely amazed how often this topic appears when it is so often
very well answered as in this thread. It does not seem to be to
difficult a concept to wrap ones mind around but yet the misconceptions
that *all* tables are bad persists!

<soapbox>
Okay maybe folks cannot recognized what the difference between tabular
data and layout framework is, so here it goes...

Tables are for tabular data, information that when organized in rows and
columns, where by such physical organization, has some purpose in
interpreting the data.

WORK OUTPUT
===========
CHIEFS
| 1 | 5 | 10 |
--+----+----+----+
10|100 | 15 | 5 |
--+----+----+----+
INDIANS 5| 85 | 25 | 3 |
--+----+----+----+
1| 65 | 50 | 0 |
--+----+----+----+

However if you are using a table to place a bit of data in a specific
location in the viewport, that is presentation! In this situation ask
yourself why do you want that bit of text there and I bet your answer
will be: "Cuz it looks good"! That *is* presentation!

Do *not* use a table to "hang" bits of your webpage's content in
specific places within the viewport. Use CSS. The real advantage of CSS
over tables becomes very clear when your decide later on that your do
not like your navbar on the upper left corner of your webpage but wish
it on the upper right, (Oh yes! Navbars are *NOT* tabular data, unless
the pages relate to say dates on a calender and the links are
understandably place in a table that resembles a page of a calender).

If you use a table you must edit your html (possible many many times
depending on how many pages are effected on your site) whereas if done
properly may only require one single change to a stylesheet to make the
change to your entire site!

Again to be clear: if you're using a table to place to bits here and
there on the page "'cuz it looks good"--STOP! If you are doing it to
arrange info in rows and columns because is has a "this vs. that"
relationship then by all means!
</soapbox>

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

dorayme 04-13-2006 11:56 PM

Re: Making a table with divs
 
In article <Xns97A4B0AC75108sonicyouth@216.196.97.131>,
Good Man <heyho@letsgo.com> wrote:

> "rtconner" <rtconner@gmail.com> wrote in news:1144962772.384111.295510
> @z34g2000cwc.googlegroups.com:
>
> > Uhm.. It doesn't work in IE.
> >
> > And if you ask me, a table does the job just fine, so why would you try
> > to imitate a table when you can just use the actaul thing. And DIV have
> > many uses, but this, IMO is not one of them.

>
> hi, time to be bitchy...
>
> what is your post referring to? you should quote posts that you are
> replying to. it makes it much easier to understand and follow the thread.


That is bitchy? You gentle lamb you...

--
dorayme

Neredbojias 04-14-2006 12:59 AM

Re: Making a table with divs
 
To further the education of mankind, "rtconner" <rtconner@gmail.com>
declaimed:

> Uhm.. It doesn't work in IE.


What does?

> And if you ask me, a table does the job just fine, so why would you try
> to imitate a table when you can just use the actaul thing. And DIV have
> many uses, but this, IMO is not one of them.


Agreed.

--
Neredbojias
Infinity can have limits.


All times are GMT. The time now is 10:01 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


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