-

You may have noticed the way the text are aligned in my blog posts are a little different from the usual way other websites normally align them, and that they always align as blocks of text no matter how you change your browser window’s size. This is because using CSS, I have justified and hyphenated the text on my website so it looks a whole lot cleaner and easier to read than if I had left it in its default jagged-right form as-is.

+

You may have noticed while reading my blog posts that the way the text are aligned are a little different from the usual way the ones from other websites are — that they always align as blocks of text no matter how you change your browser window’s size. This is because using CSS, I have justified the text on my website.

How to Hyphenate

-

Though there is a way to do this with Javascript using Hyphenopoly.js, hyphenation already has built-in functionality in CSS and it is widely supported by browsers, so its a no-brainer unless your target audience has a user-agent that does not support CSS hyphens property for some reason.

+

Though there is a way to do this with Javascript using Hyphenopoly.js, hyphenation already has built-in functionality in CSS and it is widely supported by browsers, so it is a no-brainer to do it the CSS way, unless your target audience has a user-agent that does not support CSS’ hyphens property for some reason.

To add hyphenation to your body text, simply add the hyphens property to your body section in your CSS style sheet and set it to auto, like so:

@@ -66,16 +66,20 @@

How to Justify

body {
     ...
     text-align: justify;
+}
 

This will justify your text so it all aligns neatly.

-

Other Blogs That Use Justify

-

Here are a list of other blogsites that I know of that use justified text:

- -

As of right now, I only know of one, and that is:

- -

Chris Noxz’s noxz.tech, which renders static HTML from groff.

+

Other Blogs That Justify

+

Here are a list of other blogsites that I know of that use justified text:

+