Ask Your Question
4

How can Markdown be used to combine both left and right justification?

asked 2022-02-24 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-06-26 05:00:00 +0000

pufferfish gravatar image

Markdown does not support combining left and right justification, as it is primarily a language for formatting text in a consistent and aesthetic manner. However, it is possible to achieve such a formatting effect by using HTML and CSS code within Markdown. Here's an example using HTML and CSS:

<div style="text-align: justify;">
    <div style="text-align: left; display: inline-block; width: 50%;">Left aligned text goes here</div>
    <div style="text-align: right; display: inline-block; width: 50%;">Right aligned text goes here</div>
</div>

This code will create a block of text with two sections: one left-aligned, and the other right-aligned. The text-align: justify property applied to the outer div will ensure that the text is justified across the entire width of the block. The display: inline-block; width: 50%; properties applied to each inner div will divide the block into two equal sections, one for each text alignment.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-02-24 11:00:00 +0000

Seen: 11 times

Last updated: Jun 26 '22