Skip to content

The Challenge of Special Formatting

The language of the web, HTML, comes with limitations that make it difficult to publish writing that is formatted with anything more than very basic styles. The most severe lack is of multiple spaces and tabs. HTML simply can’t be used reliably to format writing in any kind of way that will display identically on all devices and browsers. There are many different methods available to try to get around these limitations, but none of them is perfect.

Our solution has two components: one is to take advantage of what’s called a ‘code block,’ and the other is to provide some works in PDF format. When text is placed in a ‘code block,’ multiple spaces are enabled. This allows us to display work that includes multiple levels of indentation and extra white space. But in order to work reliably, the type in a code block must be monospaced. The default typeface for the web version of Exist Otherwise is Josefin-Sans, but for code block we specify “monospace,” which means the particular typeface seen by readers will be determined by their browser. Monospace type is less elegant, but more reliable for alignment.


Some say
        the world will     end
in fire
Some say                   in ice

If we publish these kinds of works as images or PDF files, the size of the screen (what we call a page for print) becomes an issue. To account for many different screen sizes, each work would have to be formatted multiple times, in many different ways. The above excerpt would probably display well on most devices as a single image, but a longer work like Melissa Coffey’s On the Fluidity of Gender in Flotsam, would be unreadable on most mobile screens.

Of course, there are many other good reasons why images fail as a good substitute for type. PDFs have some advantages over images, but not many. The bottom line is that there is no single, or easy, or 100% reliable solution. There will always be some written work on a web page that doesn’t display properly on some devices.

Our two-pronged method provides what we think is the best solution for a majority of devices —code blocks— with a downloadable PDF as a backup for any reader who wants to be sure that they’re seeing the author’s original formatting.

Code Block & Excerpts

Every written work in WordPress requires an excerpt. The primary purpose of an excerpt is for archives pages and RSS feeds. WordPress excerpts can’t display code blocks. Nor can they display images or anything other than plain text. That’s why you see some of the work excerpted here with slashes. Using slashes to separate phrases or blocks of words is sometimes used when quoting poetry for reviews or other types of articles. That’s why you’ll see some excerpts here look like this:

Some say / the world will / end / in fire / Some say in ice

Again, not an elegant or perfect solution, but one we use for some works. As with anything and everything here, we are always open to feedback, criticisms, and suggestions.

Related: Excerpts of Published Works

Leave a Reply

Your email address will not be published. Required fields are marked *