I'm currently working on creating an RTL version of the website, but I'm encountering a challenge with a specific layout:
.content {
width: 200px;
}
.content.rtl {
direction: rtl;
text-align: right;
}
<h5 class="content">
<span>3</span> <span>h</span> <span>45</span> <span>min</span>
</h5>
<h5 class="content rtl">
<span>3</span> <span>h</span> <span>45</span> <span>min</span>
</h5>
The first h5 tag is currently displaying content as "3h 45min", but I want the second tag to display it as "min45 h3" in reverse order.
However, instead of the desired output, I am getting "h 45min 3" and I'm unsure why this is happening.
Can anyone provide suggestions on how to resolve this issue with the layout?