W3C home > Mailing lists > Public > www-html@w3.org > April 2001

RE: CSS vs. Tables

From: Klaas De Waele <klaas@gracegraphics.be>
Date: Tue, 17 Apr 2001 10:12:47 +0200
Message-ID: <F16ABE403FD3D311A61500608CC0D1670C1AD6@pdc>
To: "'Kim M'" <rllrgrrl@hotmail.com>, "'elists@1stpc.org'" <elists@1stpc.org>
Cc: "'www-html@w3.org'" <www-html@w3.org>
Second works perfectly, first fails to do the center one in IE.

Can see a bunch of nice apps in it.

-----Oorspronkelijk bericht-----
Van: www-html-request@w3.org [mailto:www-html-request@w3.org]Namens Kim
Verzonden: dinsdag 17 april 2001 2:13
Aan: elists@1stpc.org
CC: www-html@w3.org
Onderwerp: Re: CSS vs. Tables

IE is actually the one interpreting the css correctly. Divs are block level 
elements so there is supposed to be a hard return after each one. You can 
make it be an inline element by using display:inline though.

I managed to achieve what you were after (only in NS6 though, again because 
of not being able to say distance from the right in IE).

You can make absolutely positioned divs positioned according to the div 
wrapped around it, which in this case is relatively positioned, so would go 
into the flow of a site.

You can do something similar using float (same as going align="left") but 
you have to have them all floating left.

This is a little unpredictable though because when you use percentages, it 
doesn't take into account the widths of borders and margins. If you were to 
do a fixed width table then it would work fine.


>From: "Timothy Luoma" <elists@1stpc.org>
>To: "Madison M" <rllrgrrl@hotmail.com>
>CC: www-html@w3.org
>Subject: Re: CSS vs. Tables
>Date: Wed, 11 Apr 2001 23:37:42 -0400
> > The w3c is moving toward using tables just for tabular data, and
> > using CSS for layout, but they have a way to go yet to make it work
> > properly.
>Hasn't the w3c always wanted to avoid using tables for layout?
> > Though I did an experiment with doing a layout that imitated
> > frames but using only divs. It only works in NS6 though, as IE only
> > supports top and left for defining div position, not bottom
> > and right. that is, IE can only do fixed width div layouts.
> > (as far as I have been able to test)
>Thanks for the page.
>It gave me an idea.... "Could <div>s give me one line that has left-,
>center-, and right- aligned text?"
>Something like this:
>left                        center                   right
>(Which is something that I can only do using Tables, as far as I know)
>So I tried this (in Opera)
><html><head><title>absolute divs</title>
><style><!-- div	{ position:absolute } --></style></head>
><div align="left">left</div>
><div align="center">center</div>
><div align="right">right</div>
><br /><hr /><p>This is a test</p>
>It fails totally in IE (I don't have Netscape installed, so I can't say
>how it works there)
>It'll be nice when we get to the point where we don't have to use
>tables for layout, but it's a long way away, unfortunately.

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Received on Tuesday, 17 April 2001 04:19:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:56 UTC