ariatemplates / usermanual

This repo holds the articles for ariatemplates.com/usermanual (text content only)
http://ariatemplates.com/usermanual/latest/
5 stars 18 forks source link

Justified text doesn't seem to behave well with code elements #72

Open ymeine opened 10 years ago

ymeine commented 10 years ago

While writing some documentation, I stumbled upon a quite ugly (sorry, this is really a matter of feelings here) display in the case of using long inline code elements in a paragraph. The paragraph is justified, but the code element won't break, leading to big spaces.

Justified text example under Chrome

Associated CSS rule:

2014-04-03 11_52_13-writing templates - aria templates usermanual latest

Note that this happens only under Chrome, since for Firefox the hyphenation prevents this, see #71

jakub-g commented 10 years ago

Yup it's ugly indeed.

I'm fine with disabling justification. Though it's pretty widespread in use, some people claim it's unnatural in fact to use that, since it distorts the way how human eye normally operates.

Most of the media sites, including BBC or Guardian, use left-alignment in their articles.