Reputation: 3153
I have some text with a braced part at the end and the containing div has the Css property direction: rtl;
. This causes the closing brace to appear at the beginning of the sentence as opening brace.
So
Some text with (braces)
becomes
(Some text with (braces
#strange-behaviour {
direction: rtl;
}
<div id="strange-behaviour">
Some text with (braces)
</div>
Here is a working fiddle.
My question
How can I motivate the closing brace to stay the closing brace?
Upvotes: 2
Views: 431
Reputation: 305
You can add LRM character after the last bracket:
#strange-behaviour {
direction: rtl;
}
<div id="strange-behaviour">
Some text with (braces)‎
</div>
Upvotes: 3