- Rock Content Knowledge Base
- Tips and Tricks
Stage / WordPress
Live Community Content
WriterAccess - Customers
WriterAccess - Freelancers
Language: Right Aligning Scripts in Ion
Learn how to change the text's diretion in HTML
Getting bidirectional text to display correctly in HTML can sometimes be a challenge.
In order for right-to-left text to look correct when an HTML page is displayed, the directional context of that text needs to be established. In HTML the direction is set by using the "dir" attribute to the nearest parent element.
Adding dir="rtl" to any HTML element (i.e. <span dir="rtl">Text Here</span> will cause the element to start on the right and flow from right to left.
Read W3C's tutorial for more information on this subject.
If you have any questions, please contact us on firstname.lastname@example.org. 😀