sarabander / sicp

HTML5/EPUB3 version of SICP
http://sarabander.github.io/sicp/
Other
4.35k stars 600 forks source link

Justify the text #8

Closed t-8ch closed 10 years ago

t-8ch commented 10 years ago

IMHO long texts look better justified. This can be enabled with

text-align: justify;
sarabander commented 10 years ago

Thanks for your suggestion. I've decided against default justification. It may look better when justified, but it tends to be harder to read due to uneven spaces between words, which is especially annoying for dyslexics.

Further complication is Chrome's refusal to hyphenate words, despite claiming to support CSS3 hyphenation. Justified text looks ugly without word breaks. I try to avoid using too many polyfills and browser-specific code.

t-8ch commented 10 years ago

Thanks for the explanation! I'll just add it locally.