December 15, 2022

Justify or right-align text in Markdown using HTML

Put your text in a <div> element and use the <style> attribute to apply CSS text-align to your text.

To justify add:

<div style="text-align: justify"> your text </div>

To right-align add:

<div style="text-align: right"> your text </div>

markdown personal computing

No affiliate links, no analytics, no tracking, no cookies. © 2016-2023 Content is licensed under CC BY-NC-SA 4.0 .