Sent by Daniel Staal on 25 August 2002 23:11
--On Sunday, August 25, 2002 14:33 -0700 Don Hinshaw
[EMAIL-REMOVED]> wrote:
>> I only see three columns - two narrow and one wide.
>
> You are correct in that. As I said, I am just beginning the layout. But
> the problem/solution should be the same whether it's 3 or 4 columns, no?
Not necessarily. In three columns, if you can assume the middle is the
longest you can just put all the borders on that one (and on the
surrounding div). Four gets tricky...
I can get a four column design to work in a least one browser, but it is
very brittle. What I did: follow the first three divs with a cleared br,
then surround them with another div that hugs them, and set border on that.
(Hopefully the center div of those three (number 2) is the longest, so you
can set borders on that.) The fourth is absolutely positioned into its
place. If the third div is the longest, you would have to float right and
write them in reverse order... (God help you if it is the outer divs that
are longest.) You would need to be able to specify sizes very accurately.
There must be a better way. Tables come to mind, but hopefully someone
else has a brainstorm?
Daniel T. Staal
p.s. Of course there's always css3:
http://www.w3.org/TR/css3-multicol/
------------------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you are
expressly allowed to retransmit, quote, or otherwise use the contents
for non-commercial purposes. This copyright will expire 5 years after
the author's death, or in 30 years, whichever is longer, unless such a
period is in excess of local copyright law.
------------------------------------------------------------------------