Skip to content

Justifying text #63

Answered by jpanther
dr460nf1r3 asked this question in Q&A
Dec 24, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

This is one of those things that is not directly supported in Markdown but it depends what you're looking for. If you just want to justify certain blocks of text, you can simply place the HTML directly into your content...

<div style="text-align: justify">This is justified text.</div>

You could also make this into a custom shortcode to easily reuse it across multiple articles. You can simply wrap an entire article with this tag and it should still format all the headings and things correctly.

If you want to apply justified text to the entire site, you can add the below to your custom.css file and it will apply to all the Markdown content throughout the theme.

.prose {
  text-align: justif…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dr460nf1r3
Comment options

You must be logged in to vote
5 replies
@jpanther
Comment options

@dr460nf1r3
Comment options

@jpanther
Comment options

@dr460nf1r3
Comment options

@jpanther
Comment options

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