Re: what's a 'block element?' was: reliable way to float a block of text?

by "Darrell King" <darrell(at)webctr.com>

 Date:  Tue, 23 Apr 2002 16:52:58 -0400
 To:  <hwg-techniques(at)hwg.org>
 References:  jbarchuk pieceoshit
  todo: View Thread, Original
Seems pretty simple when you look at it.  If the table is aligned right,
that leaves the space to the left of it available for the next element in
line, speaking from the browser's point of view. Div gets a newline into the
next available space, which is this open area.

That being said, I would have said it wouldn't work if asked...:).

Of course, CSS does it just as well, but it is a cute trick for older
browsers...

D

----- Original Message -----
From: Lisa Bradshaw


Well, I gotta admit, I'm stunned too! How on earth did you make that work?
And how did you figure it out? I thought something like that could only be
done with CSS. I tried it out and tested it on NN4.76, NN6.01, IE6, and
Opera6. It works perfectly in all of them! I added some CSS for the border
of the table and it still worked great in that it didn't choke NN4.7 - it
just ignored the style. If youd like to check it out using Linux or Mac
etc... to see if it still works, I'd be interested in the results. Check it
here: http://www.web-design-cs.com/temps/test.htm

> >
> > <div>lots of text here</div>
> > <table border='1' align='right' width='150'>
> > <tr><td>Here is some text.Here is some text.Here is some text.Here is
some
> > text.Here is some text.</td></tr>
> > </table>
> > <div>this text will flow round the table..</div>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA