Hello;
I have got a book that has got four translations. I want to show the translations side by side.
The first paragraph needs to be in the English language, horizontally to the right of that the first paragraph needs to be in the German language, horizontally to the right of that the first paragraph needs to be in the French language, and horizontally to the right of that the paragraph needs to be in the Spanish language.
I know how to show the list items in line. The “display: inline;” command does that nicely.
However, I do not know how to get the columns to have an equal width. Each of the columns needs to have a width of 25% of the total.
Here’s how to get the items to display horizontally:
li.inlineList
{
display: inline;
}
<ul class=“inlineList”>
<li class=“inlineList”>Paragraph 1 (English)</li>
<li class=“inlineList”>Paragraph 1 (German)</li>
<li class=“inlineList”>Paragraph 1 (French)</li>
<li class=“inlineList”>Paragraph 1 (Spanish)</li>
</ul>
<ul class=“inlineList”>
<li class=“inlineList”>Paragraph 2 (English)</li>
<li class=“inlineList”>Paragraph 2 (German)</li>
<li class=“inlineList”>Paragraph 2 (French)</li>
<li class=“inlineList”>Paragraph 2 (Spanish)</li>
</li>
<ul class=“inlineList”>
<li class=“inlineList”>Paragraph 3 (English)</li>
<li class=“inlineList”>Paragraph 3 (German)</li>
<li class=“inlineList”>Paragraph 3 (French)</li>
<li class=“inlineList”>Paragraph 3 (Spanish)</li>
</li>
Here’s what I want it to look like:
[SIZE=“1”]Paragraph 1 (English) | Paragraph 1 (German) | Paragraph 1 (French) | Paragraph 1 (Spanish)
Paragraph 2 (English) | Paragraph 2 (German) | Paragraph 2 (French) | Paragraph 2 (Spanish)
Paragraph 3 (English) | Paragraph 3 (German) | Paragraph 3 (French) | Paragraph 3 (Spanish)[/SIZE]
A table could be used for a layout like the one above. However, a table is not permitted for this particular assignment.
My question is as follows:
How do I get each of the list columns to have exactly the same width of 25% of the total so that each of the four paragraph translations are horizontally aligned with each other?
Thanks.