|
Convenient web based access to our favorite web design Usenet groups
|
 |
This is Interesting: Free Magazines for Graphics designers and webmasters
| Author |
| Thread |
 |
|
|
|
|
|
 |
 |
 |
2 Column layout w. footer... |
 |
|
 |
|
|
|
  06-25-04 - 12:15 PM
|
Hi,
I'm trying to create a 2 column layout with a footer on the bottom, where
the (fixed-width) sidebar follows the content in the code, while showing
on the left hand side of the content.
The footer must stay at the bottom regardless of which column is the
longest, so absolute positioning is out, I need to use floats with the
clear: both; - property on the footer.
Doing this with the sidebar *before* the content in the code I know how
to do, no worries, but the other way around seems to be much harder.
There doesn't seem to be many other pages doing this, so I'm guessing
this might be near to 'impossible' to do in a dynamic way?
I found a pretty good starting point here:
http://www.ryanbrill.com/floats.htm
The sidebar is on the right hand side, so I have been trying to hack this
over to the left. Also, I need to be able to add padding and margins, and
if I mess with this, the result is often that the columns are pushed
down. I guess I need to think differently to do this... anyway, here's
what I've come up with for now:
http://stian.freeshell.org/test/test3.html
This does not scale well however, especially in Opera 7.51 (bug?), where
if you resize the page, the content seems to be fixed width. It scales ok
in MSIE and Mozilla, but I'd like it to work in Opera the most.
Anyway, any pointers or tips on how to do this? Any help appreciated, I'm
sure you CSS gurus can think of some way to do this :)
regards,
Stian
--
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
 |
Re: 2 Column layout w. footer... |
 |
|
 |
|
|
|
  06-25-04 - 05:15 PM
|
On 25 Jun 2004 09:40:57 GMT, Stian Lund <stian.REMOVE.lund@operamail.com>
wrote:
> Hi,
> I'm trying to create a 2 column layout with a footer on the bottom, where
> the (fixed-width) sidebar follows the content in the code, while showing
> on the left hand side of the content.
..
> http://stian.freeshell.org/test/test3.html
>
> This does not scale well however, especially in Opera 7.51 (bug?), where
> if you resize the page, the content seems to be fixed width. It scales ok
> in MSIE and Mozilla, but I'd like it to work in Opera the most.
You've hit a known problem in Opera, changing the body width doesn't cause
a recalculation of widths of floated elements. Or something like that at
least.
> Anyway, any pointers or tips on how to do this? Any help appreciated, I'm
> sure you CSS gurus can think of some way to do this :)
I don't think there is a simple CSS solution for this, maybe some
javascript could help. But you could also ignore the case of changing
window sizes.
--
Rijk van Geijtenbeek
The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
|
|
|
| [
Post Follow-Up to this message ]
|
|
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
| All times are GMT. The time now is 04:25 AM. |
 |
|
|
|
|
|  |
|