Folks,
The Question
Is there a smart css width or class I could use that is also “responsive” that can somehow combine all the subsequently mentioned variables to wrap my text automatically in such a way as to not have long, hard to read lines? but otherwise behave normally? All wikitext, even widgets should remain valid.
- Ideally I would not have to use special markup but If I must I will, eg a block markup.
Background
I use my TiddlyWiki on a standard wide screen most of the time, I also use the “Fluid Story/Fixed sidebar” setting for maximum use of the space. In many cases this is fine, however when I am typing simple text, “prose” I like to type full sentences and paragraphs and let them flow as needed, wrapping at the end of line without forcing end of line. A blank like to indicate a paragraph etc…
The only problem with such text, free to flow within the space available is in my extra wide tiddlers stretch out in long lines. This is harder to read, having “soft” new lines regularly really assists the reading process.
Try this on a wide wiki such as tiddlywiki.com
This is a sample long line. Although with more than one sentence it quickly grows long on my default wide tiddlers, The Quick brown fox ran after the lazy dog. You can see how much harder it can be to read this way.
A new paragraph
<div style.width="60%">
This is a sample long line. Although with more than one sentence it quickly grows long on my default wide tiddlers, The Quick brown fox ran after the lazy dog. You can see how much harder it can be to read this way. This sample has a `<div style.width="60%">` which makes it much more readable.
Another new paragraph, which unfortunately ignores the blank line.
</div>
In this case on my screen, with the current zoom and style.width="60%" the contents of the div looks better but my intended paragraph breaks are not honoured.
Further 60% only makes sense in this circumstance, if I was looking at the same content on my mobile, in portrait, in smaller font, so I don’t want to hard code this. Nor do I want it to apply to the whole tiddler body, either as I may want tables and images to make use of the whole width.
Please reconsider the above question.
Your help greatly appreciated. I have being living with this “pain” for many years.