Hey,
What i do i use a 1 px horizontal background line picture for a whole
content div.
Something like that:
div.centered { width: 780px; margin:0 auto 0 auto;
background-image:url(../../G/layout/background_centered.gif);background-repeat:y;}You
can see the results on http://ksi.mikronika.com.pl:88/mikronika/Hope it will
> Example page:
>
[quoted text clipped - 34 lines]
>
> d.
Lauri Raittila - 24 Nov 2004 10:58 GMT
> Hey,
You top posting. As usual, it means you didn't read OPs post.
> What i do i use a 1 px horizontal background line picture for a whole
> content div.
OP is asking different question, and your solution is not suitable for
that. His problem was that content div was not long enaugh, not that
column was too short.

Signature
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
> http://www.splatteredink.net/test/
>
> The problem is that in Firefox 1.0 the container only extends as far down
> as the right column, thus the left column overflows outside the container.
> The layout looks fine (container extends all the way to the bottom of the
> left column) in Opera 7.5 and IE6.
I don't know of anything in any CSS spec that would suggest that such
behavior is correct. I'm not surprised IE/Windows is doing it
(probably thanks to #cont { width: 700px; }, which switches IE/Windows
into using its second type of block), but I'm a little surprised about
Opera.
> I then applied a float to the container div, and this made the container
> actually contain both columns. However, doing this made the page not
> centered anymore.
This works because, in CSS 2.1 terminology, a float is one of the
things that establishes a new block formatting context, and the
definition of 'height: auto' (the default) for such elements means
they grow to contain floats.
> any ideas? Should I compromise and just float the right column, or is
> there another answer?
Another answer would be the rule:
#cont:after {
display: block;
content: " ";
clear: both;
}
-David

Signature
L. David Baron <URL: http://dbaron.org/
Lauri Raittila - 24 Nov 2004 10:55 GMT
> Drue <xrintrahx@(nospam)yehoo.com> wrote in message news:
> >
[quoted text clipped - 6 lines]
> behavior is correct.
> I'm a little surprised about Opera.
Quirks mode. Anyway, now it trickers standards mode in my 7.6p3, and does
show things correctly (like FF).
It trickers quirks in IE, I assume, because doctype has extra whitespace,
> > I then applied a float to the container div, and this made the container
> > actually contain both columns. However, doing this made the page not
> > centered anymore.
It is undefined, is could just as well not contain them...
> > any ideas? Should I compromise and just float the right column, or is
> > there another answer?
#cont {display:table;}
> Another answer would be the rule:
>
[quoted text clipped - 3 lines]
> clear: both;
> }
Does it work on Gecko? It has worked on Opera for few years...

Signature
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
L. David Baron - 24 Nov 2004 22:49 GMT
> > Another answer would be the rule:
> >
[quoted text clipped - 5 lines]
>
> Does it work on Gecko? It has worked on Opera for few years...
Yes. It works in both current trunk and in 0.9.9 (the oldest version
I have around, from March 2002).
-David

Signature
L. David Baron <URL: http://dbaron.org/ >
Drue - 28 Nov 2004 03:00 GMT
> #cont {display:table;}
Thank you both for your suggestions. Both bits of code fixed the float
problem, however I ultimately went with L. David Baron's suggestion. The
above code, once applied to another page, did strange things to div and p
background images.
Thanks again.
d.