Change text-align with JavaScript
Click the "Try it" button to right align the text of the DIV element:
Try it
myDIV