Breaking a paragraph up, and aligning it
A paragraph broken into lines, set four ways: left, right, centred, justified.
A paragraph whose style changes inside it: size, underline, colour.
Most text in a real document is not one style from end to end. A sentence carries a bold term, a total is underlined, a footnote marker is smaller than the words around it. This page sets paragraphs whose style changes inside them, and lets the line breaking cope.
A line is as tall as the tallest style standing on it, so a twenty-point word in a ten-point paragraph opens up its own line and no other. Underlines are drawn at the height and the thickness each font states for itself, so a passage set in another font is not underlined with a line too thick or too thin.
The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.
The same document is written in each of these languages. Open the one you want to look at.
| Before | 110,563 bytes |
|---|---|
| Now | 40,057 bytes |
| Saved | 63.8 % |
Not one mark on the page changed. See every document measured.
A paragraph broken into lines, set four ways: left, right, centred, justified.
A word too wide for its column: left whole, or cut to the edge.
A justified column set twice: the long words breaking at their soft hyphens with a hyphen shown, or left whole, and a figure a no-break space keeps together.
A justified column set twice: file paths and compounds running past the edge with no break points, then wrapping where a break after a slash or a hyphen is allowed.
One long passage poured into three columns, each fitting the lines its height allows and handing the rest to the next.
The same two paragraphs six ways: the indents, the room around a paragraph, its last line, its first line.