|
Posted by Jukka K. Korpela on 01/23/48 11:40
"Paula Radetzky" <fieldwork1@gmail.com> wrote:
> I need to write down their folktales and translate
> *each* word separately, right under it.
A table appears to be natural markup for this, but as you note,...
> The problem is with stories that are longer than one line. If I
> continue typing the story, I want the TABLE CELLS from Lines 1 AND
> 2 to wrap TOGETHER, as a pair.
I'm not sure whether I understand the description right, but I would
suggest the approach of using a sequence of two-cell tables (2 rows, 1
column) floated to the left. You would put each pair in one table, and
the floating would take care of placing as many items in a row as
possible for a given canvas width. In a sense, this would simulate
display: inline-block.
You could actually do this even in HTML without CSS, though the markup
would become rather verbose, e.g.
<table align="left">
<tr><td align="center" nowrap>Rubana-cu
<tr><td align="center" nowrap>dawn-ed
</table>
but it's simpler to write just
<table><tr><td>Rubana-cu<tr><td>dawn-ed</table>
with CSS like
td { white-space: nowrap;
text-align: center; }
table { float: left; }
(However, the formatting is here so essential that it might be argued
that it should be done in HTML at least as regards to align="left".)
This is not quite as elegant as a Ruby approach, but this is simpler
and extensible: you could have e.g. the original text, pronunciation
information, and translation, for example, in three rows.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
Navigation:
[Reply to this message]
|