![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
Petr Vileta wrote: I disagree with you. If this is a bug why this bug is in all browsers (except text like)? In addition to his I can anytime define <a> as block element and W3C CSS2 documentation say this about it: --- CITE --- 9.2.5 The 'display' property 'display' Value: inline | block | list-item | run-in | compact | marker | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit Initial: inline Applies to: all elements Inherited: no Percentages: N/A Media: all --- CITE --- You *may style* an A element to display as block, but that does not reverse the invalidity of placing a block element within an inline element and also regardless of whether or not browser parse such junk. Look at the HTML "spec" that the DTD is based on "<!ELEMENT A - - (%inline * -(A) -- anchor -->"^^^^^^^^^^^ |
#22
| |||
| |||
|
|
2. An inline element cannot contain a block element. The a element is inline, and p is block. I disagree with you. If this is a bug why this bug is in all browsers (except text like)? In addition to his I can anytime define <a> as block element and W3C CSS2 documentation say this about it: |
#23
| |||
| |||
|
|
I disagree with you. If this is a bug why this bug is in all browsers (except text like)? |
|
In addition to his I can anytime define <a> as block element |
|
and W3C CSS2 documentation say this about it: --- CITE --- 9.2.5 The 'display' property 'display' [...] Please take attention to "Applies to: all elements" ;-) So I can define a.block {display: block;} and use it for my purposes I I said. |
#24
| |||
| |||
|
|
The problem here is that the sidenote is always visually below the point at which its inserted. |
|
In some case, you want a sidenote to an entire paragraph, and though the note (logically) follows the paragraph as a whole, you might want it displayed not after the paragraph, but alongside it. |
#25
| |||
| |||
|
|
Scripsit D.M. Procida: The problem here is that the sidenote is always visually below the point at which its inserted. I think it's more serious that in the HTML document, the sidenote appears before the text it relates to. |
|
In non-CSS rendering, this means that the user sees or hears first the sidenote, then the main text. But maybe this is what you meant. Odd as it may sound, using a table leads to greater robustness. You would have, say, a paragraph of main text in one cell and the associated sidenote in the corresponding cell of another column. In some case, you want a sidenote to an entire paragraph, and though the note (logically) follows the paragraph as a whole, you might want it displayed not after the paragraph, but alongside it. |
|
Using a table, you can specify different relationships, so that a sidenote relates to one paragraph or a sequence of paragraphs. It gets a bit tricky if the sidenote is expected to be longer than the main text, in which case you would probably want to let the sidenote flow down, continuing alongside with text that it does not relate to. But this can be handled by modifying the table structure, possibly using the rowspan attribute for the sidenote cell. |
#26
| |||
| |||
|
|
Scripsit D.M. Procida: The problem here is that the sidenote is always visually below the point at which its inserted. I think it's more serious that in the HTML document, the sidenote appears before the text it relates to. In non-CSS rendering, this means that the user sees or hears first the sidenote, then the main text. But maybe this is what you meant. |
#27
| |||
| |||
|
|
On 2007-12-30, Jukka K. Korpela <jkorpela (AT) cs (DOT) tut.fi> wrote: Scripsit D.M. Procida: The problem here is that the sidenote is always visually below the point at which its inserted. I think it's more serious that in the HTML document, the sidenote appears before the text it relates to. But in Lauri Raittila's example it doesn't-- the sidenote appears immediately after the text it relates to. |
|
In some case, you want a sidenote to an entire paragraph, and though the note (logically) follows the paragraph as a whole, you might want it displayed not after the paragraph, but alongside it. To answer this point, if you wanted that, you could make each <p position: relative and then put a position: absolute container for sidenotes at the end of each <p>. Like this: This only works well if you're fairly sure the sidenotes won't be longer than the paragraphs themselves. |
#28
| ||||
| ||||
|
|
On 2007-12-30, Jukka K. Korpela <jkorpela (AT) cs (DOT) tut.fi> wrote: Scripsit D.M. Procida: The problem here is that the sidenote is always visually below the point at which its inserted. I think it's more serious that in the HTML document, the sidenote appears before the text it relates to. But in Lauri Raittila's example it doesn't-- the sidenote appears immediately after the text it relates to. |
|
To answer this point, if you wanted that, you could make each <p position: relative and then put a position: absolute container for sidenotes at the end of each <p>. This only works well if you're fairly sure the sidenotes won't be longer than the paragraphs themselves. |
|
But this can be handled by modifying the table structure, possibly using the rowspan attribute for the sidenote cell. |
|
That's horrible though. You need to fiddle around with rowspan after finding that your sidenote wraps to a few lines. Floats are a much more natural way to lay out sidenotes for this reason. |
#29
| |||
| |||
|
|
in comp.infosystems.www.authoring.html, Ben C wrote: [...] This only works well if you're fairly sure the sidenotes won't be longer than the paragraphs themselves. Which is not that likely, as side/foot/end notes are mostly used for long pieces of information that would take too much space, so bound to be longer than paragraph it relates. But with absolutely positioned thing, it won't be problem when note is longer than relating paragraph, but when it is long enough to reach next note. Unfortunately, next note might be on next paragraph. |
|
But this can be handled by modifying the table structure, possibly using the rowspan attribute for the sidenote cell. Yes, but then you luse semantics of relating to several paragraphs. That's horrible though. You need to fiddle around with rowspan after finding that your sidenote wraps to a few lines. Floats are a much more natural way to lay out sidenotes for this reason. But if you wish to get note level to paragraph it relates, it would mean it wouldn't linearize. But I think the problem is not that note appears later than text it relates (especially as if sidenote is used as footnote would be in print), but that the relation is not apparent. So you could style the paragraph. If there was enough visual clue, it might not be necessary to have comment exactly paraller. Here is try where distinction is made by colors. More than 2 colors should be used if notes are longer. http://www.student.oulu.fi/~laurirai/www/sidenotes.html |
#30
| |||
| |||
|
|
Outer edge is defined in CSS 2.1 8.1, although I see no mention there of negative margins. A browser might think that on your page, the left outer edge of each float is actually 1.2em to the _right_ of its left outer edge. |
![]() |
| Thread Tools | |
| Display Modes | |
| |