Skip to content

How to change text alignment #2359

Answered by rjzupkoii
ShwayanHu asked this question in Q&A
Discussion options

You must be logged in to vote

For the most part the template doesn't do any additional text alignment, so you need to be slightly handy with HTML and CSS to update everything to be justified text. The basic pattern is like this:

div {
  text-align: justify;
  text-justify: inter-word;
}

Which says that when the web browser encounters the div tag, it should justify the text within and do so based upon the space between words (see this link for all of the options).

Since there's not really a single place where you can add that and have it apply to everything you have a couple options. The simplest approach is to just wrap all of your posts like this:

<div style="text-align: justify; text-justify: inter-word;">
   Your c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ShwayanHu
Comment options

Answer selected by ShwayanHu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants