|
Posted by Jukka K. Korpela on 04/26/07 17:23
Scripsit JWS:
> I found out what was the matter now: as selector I had used the
> "its child" property:
>
> div > p {margin: 0;}
>
> but it seems that IE does not understand "its child".
IE 6 does not recognize the selector div > p, so it ignores the entire rule.
IE 7 recognizes it, though only in "Standards Mode".
> So wherever possible I now avoid "its child";
That's a good practical principle at present.
> Yes.. it also seems IE does not understand the p+p ("two
> consecutive paragraphs") selector, which handles the "first
> paragraph" problem automatically.
Similarly, p+p is supported in IE 7 in Standards Mode, not otherwise in IE.
> I do not have an ideological position in this, but.. tables are so
> "square". If a sidenote is taller than its accompanying paragraph,
> display of the next paragraph is pushed down until the sidenote
> finishes. This is not so nice; sidenotes waste space (or paper)
> anyway, and such wastage should not be made worse if it can be
> avoided.
That's a problem with tables, and an asset. But you could organize the table
so that one cell in the left column contains _one or more_ paragraphs,
including all paragraphs before the next paragraph to which a note is
attached. This would imply that a gap is created in the left column only if
you have some relatively short text with a long sidenote and then
(immediately or after short texts) some other text that has a sidenote. In
such a case a gap is more or less necessary anyone.
This would been slightly illogical markup, since you would have
<tr><td>text</td> <td>note</td> </tr>
so that "text" contains first the paragraph that the note relates to, then
perhaps one or more other paragraphs. In an attempt to please the purists
(including my puristic self), we might write as follows:
<tr><td>text 1</td> <td rowspan="2">note</td> </tr>
<tr><td>text 2</td> </tr>
but I don't think it would really be an improvement in logical structure.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|