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

by "Lisa Bradshaw" <zibbler(at)web-design-cs.com>

 Date:  Tue, 23 Apr 2002 17:50:16 -0400
 To:  <hwg-techniques(at)hwg.org>
 References:  jbarchuk pieceoshit king
  todo: View Thread, Original
Yeah, I guess that makes sense. Not something I would have thought to do. I
probly woulda used CSS for that, but doing it this way degrades nicely. One
more thing to add to my bag-o-tricks ;-)

Lisa


> 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