Beauregard T. Shagnasty wrote:
The answer would depend upon how you have your columns defined. CSS?
Tables? Frames?
This is the stylesheets froup, right? I was actually hoping for
an example of a site that made it work, but here is what I'm
currently working on:
http://xmission.com/~helgem/test/
What I want is to be able to say
<div id="wrapper">
<div id="nav">
stuff
</div>
<div id="main">
stuff
</div>
<div id="sidebar">
stuff
</div>
</div>
or just
<div id="wrapper">
<div id="nav">
stuff
</div>
<div id="main">
stuff
</div>
</div>
and have the first bit render as two columns, side by side,
while the second bit renders as a single column that takes
up the entire area that ordinarily would be taken up by both
the main bit and the sidebar. (My stylesheet has a print
version that puts the sidebar below the main text and skips
the nav area entirely.)
As you can see, the site is a tad more complex than what I've
shown here. There are a couple more divs that take care of
setting up a semi-flexible min-max width of the page (part of
that is a hack to make it work in IE as well as in Firefox)
and centering it. And there's a header. But the meat of the
question is how to make the sidebar optional. I like white
space well enough, but there's such a thing as being wasteful. :-)
--
Helge Moulding
hmoulding at gmail dot com Just another guy
http://hmoulding.cjb.net/ with a weird name