Justifying text #63
-
Hey! :) Thanks for your work, its beautiful 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
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 .prose {
text-align: justify;
} |
Beta Was this translation helpful? Give feedback.
-
So the actual goal is to have every text excpet for the headlines justified. I tried your first suggestion which does in fact work well - expect for one big drawback which is that Markdown content does no longer work (probably as its parsing HTML there) 👀 |
Beta Was this translation helpful? Give feedback.
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...
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.