On 8/1/07, Thomas Dalton <thomas.dalton(a)gmail.com> wrote:
Why would you
want bla.jpeg to flow into the first section on the page
but not the second? If you want to break before non-initial chapters,
you could do
What he wants is for the first image to flow anywhere it likes (since
it isn't part of any chapter), but the second image (which is part of
chapter 1) to stay within chapter 1. Were there an image in chapter 2,
it would stay within chapter 2. Were there an image inbetween chapters
1 and 2, it would flow into chapter 2.
Okay, then
div.chapter > :last-child { clear: both; }
Of course, that will only work in Firefox, Opera 9.5, Konqueror, and
maybe "MSN for Mac OS X", whatever that is. Practically speaking
you'll need some kind of dummy element at the end of every chapter,
whether a br or something else.
On 8/1/07, Thomas Dalton <thomas.dalton(a)gmail.com> wrote:
That's the same as using <br>, it makes no
semantic sense.
It does have the advantage, AFAIK, of not creating an extra line break.