How to set a right-to-left paragraph in a Tumblr post?

2

Tumbler used to allow right aligned paragraphs, which is useful in RTL languages (e.g., Hebrew or Arabic).

In the past, I'd create Right-to-Left paragraphs - by entering either of the following in the Tumblr post HTML code:

  • <div align="right">
  • <div style="text-align:right">

However, following the latest Tumblr "enhancements", these tags stopped having effects.


Anyone knows how to make a right-to-left paragraph in a Tumblr post?


Note: I'm aware that there're Tumblr themes that convert globally to RTL, but I want the justification to be only per paragraph (or post).


EDIT 1

Tried unor suggestion.
Unfortunately, Tumblr seems to ignore these html5 tags.
Namely, while this is the html code of the Tumblr post, the (Hebrew) paragraphs are still left-aligned!

boardrider

Posted 2015-04-04T10:16:35.773

Reputation: 615

Answers

1

Seems that the following tag (kudos @unor) will create a right-justified RTL paragraphs in a Tumblr post:

<div style="text-align: right;" dir="rtl">

See example.


Note:

In editing mode, these paragraphs will still show left-justified, but the displayed post will be right-justified.

Another Note:

This may seem obvious, but is worth mentioning, that the above tags should be inserted while editing the post in HTML view.

boardrider

Posted 2015-04-04T10:16:35.773

Reputation: 615

0

(I don’t know and can’t test what Tumblr allows/disallows in post markup; but here’s what they should support, ideally.)

If you want real RTL, you should not use CSS (or the obsoleted align attribute).

For specifying an element’s text directionality, HTML5 provides

If I understand your use case correctly, you could (try to) use one of these:

<p dir="rtl">…</p>

<p><bdo dir="rtl">…</bdo></p>

unor

Posted 2015-04-04T10:16:35.773

Reputation: 2 749

Thanks @unor: see EDIT 1 in OP for answer. – boardrider – 2015-04-06T15:59:10.720