9👍
✅
Text alignment is handled by CSS not Django. Set the text-align
property on the container element:
.container.right-aligned-language {
text-align: right;
}
Then you can apply the class right-aligned-language
to your container (or body tag for that matter) with a conditional statement in your template.
3👍
nowadays you should use in CSS:
direction: rtl
0👍
Use this instead please:
https://github.com/abbas123456/django-right-to-left
CSS is for style and not content.
- Pycharm error: Improperly configured
- Django-import-export – import of advanced fields?
- Django: Change the DOM id at form field level
- How to design shopping basket using session?
- Executing two tasks at the same time with Celery
Source:stackexchange.com