Try this one.
http://www.pmob.co.uk/temp/2colfixedtest_4.htm

  _____  

From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 8:01 PM
To: CF-Community
Subject: RE: Damn CSS... Damn it to hell!

It seems that a main problem is that the height is calculated to the height
of the container - but only within the viewport (at least in some browsers).
So once you have to scroll all bets are off.

Jim Davis

  _____  

From: Sandy Clark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 7:50 PM
To: CF-Community
Subject: RE: Damn CSS... Damn it to hell!

Actually, height is always computed in relation to the parent element.  If
you use html, body{height: 100%}, then containing elements are always
computed in relation to that. Using html, instead of just body helps Opera.

If you are looking for a 2 column layout, I can help you out if you want to
do it offline (ask Steve Nelson, I helped him out on a similar problem).

I'm sorry about the code I sent, its not what you want.  I thought the nav
was horizontal instead of a 2 column, but there are ways to do it.

Sandy Clark

  _____  

From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 7:45 PM
To: CF-Community
Subject: RE: Damn CSS... Damn it to hell!

I've spent a lot of time on that site.  ;^)  That definitely falls into the
"sorta does it" category - but the image used to mimic full columns doesn't
degrade well and is fixed width.  Since the column color/background is
"simulated" in this case an end-user style-sheet can royally screw it up
even in browsers that do fully support the hack.

The main problem is vertically spanning the columns: by default CSS ends the
DIV when the content ends, so either your "content" or your "nav" column
will be shorter than the other.  Setting the "height" makes no actual
difference since height only honors the current viewport (for us that means
a screen): once you scroll one or the other columns is cut.

There just isn't a "good" way to do this - and it's just unbelievable to me
that it wasn't taken into account when CSS was being defined.

Jim Davis

  _____  

From: bret [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 7:28 PM
To: CF-Community
Subject: Re: Damn CSS... Damn it to hell!

Have you tried some of the samples out there? I found this one that
looks like what you want to do:

http://nemesis1.f2o.org/articles

FWIW, I feel the same way. I love CSS in theory. Practice is another
story. Time consuming doesn't even begin to explain it. Perhaps fine for
people who get paid to just do the CSS and front end or corporations
with boundless resources and time, but if you are trying to make a
profit with small client projects, a mix of CSS and Tables seems to be
the most expedient way of getting a project done.

-Bret

Jim Davis wrote:

> Sorry - just venting.
>
> Every time I get into this it amazes me that CSS made it so damn difficult
> to do one of the most common layouts online: a full-width header, two
> equal-height (despite content) columns (one for navigation and one for
> content), and a full-width footer.  In other words, this:

  _____
  _____

  _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to