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 html

No affiliates, No (Google) Analytics. © 2016-2023 yctct.com. Content is licensed under CC BY-NC-SA 4.0 .