On 2007-10-08, Marky1124 <marky1124@gmail.comwrote:
Quote:
On Oct 8, 2:18 pm, Ben C <spams...@spam.eggswrote:
Quote:
>Is this the effect you want?
>
Hi Ben,
>
That's very impressive. That's much closer to the effect I want but
unfortunately the map sits on top of the text I'd aim to have above
and below it, presumably because it's set to absolute.
If you don't mind setting explicit heights for the regions above and
below then it's easy-- just put a header div inside container above
#gmap and a footer div below it, set them to 4em each, and make #gmap
top: 4em; bottom: 4em instead of top: 0; bottom: 0.
[...]
Quote:
After my holiday I'll have to ponder more on the way of things. I
certainly need to understand fully how and why your example works.
I've not spent the time yet getting to grips with it.
The thing is you might not actually need auto widths for the left and
right columns. If you can set those widths explicitly then you can just
use margins to get the middle column between them instead of using
overflow: hidden to make a block formatting context and therefore force
a normal flow block to squeeze between floats.
Your simpler example was good. The thing to be clear about though is
where you can set width and height explicitly, and where you want them
fitted either to the content or to the viewport. It's the combination of
those requirements that makes all the difference to the options you have
about how to do it.