I have a website with some tiled HTML elements (tables), which are tiling left-to-right. I need the tables to be tiled from right-to-left, as the content of the tables is in Arabic. A picture of the current format is linked here.
I have a website with some tiled HTML elements (tables), which are tiling left-to-right. I need the tables to be tiled from right-to-left, as the content of the tables is in Arabic. A picture of the current format is linked here.
3
Answers
dir="rtl"
in the attributes for my<body>
made the direction of the tiling right-to-left.you can use this comment in the html beginning tag
And also use this styling in the css files
table {
Per my comment: Make the container of the inline-block elements right-to-left; then reset the English elements back to left-to-right.
I put the direction directives in CSS for convenience, even though it is more common to have it as an HTML attribute (
dir="rtl"
) since it normally pertains to the content, not style.Apologies I can’t write Arabic, but the parentheses should make it obvious which order is being observed in each line.