On 8/1/07, Daniel Arnold <arnomane(a)gmx.de> wrote:
The image bla.jpeg shall flow into Chapter 1 but
foo.jpeg shall _not_ flow
into Chapter 2. You cannot solve this with a div around Chapter 1, cause in
that case bla.jpeg also can't flow into Chapter 1.
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
div.chapter + div.chapter { clear: both; }
Or of course a specific class.
Furthermore HTML has a fundamental design flaw for
human editing. Most HTML
tags need open and close tags. [etc.]
I never said you should use HTML and not wikitext. Possibly Wikibooks
or whatever would like wikitext chapter breaks or something, in the
fullness of time. Certainly the existing markup is rather
Wikipedia-centric. But line breaks, cleared or not, are not semantic,
and you have provided no use case where they're particularly more
useful than a more semantic (and therefore more useful) wikitext
equivalent. Why doesn't Wikibooks just adopt the convention of h2 =
chapter break or something and then do clears based on that, if it's
wanted so much? Are there really <br clear="both" />s everywhere?
<br> may be the most used HTML tag in wikitext -- actually I'd be
extraordinarily surprised if it beat out <div>, at least if you count
template usage; where are your figures from? -- but if that's so, it's
got to be the most overused as well. It's really necessary only very
rarely if you're going for a consistent site-wide style.