Hi @heymargaux!
The simplest way to do it like your mock-up would be to use CSS margins:
.cooked {
margin-left: 20%;
margin-right: 20%;
}
However, it might be trickier if you want to do this only for posts using different languages.
Can you be more specific?
There are multiple configurations possible, so you need to provide a bit more information.
-
Are the users able to choose their own language interface (see the allow user locale admin setting)?
-
Are there posts using Right-To-Left language and others that don’t on your forum?
Using an RTL interface adds rtl classes in several parts of the page, including the <html> tag and <p> tags inside posts, but not on the post’s parent container.
But the RTL interface has not much to do with a post language. I can use an RTL interface and write a post in French.
And there is no easy way to detect if a post is written in another language.
What is your use case exactly? The more info you provide (links to your forum maybe?), the best we can help you ![]()
