-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTL alignment problems: navbar-nav and navbar-brand #40671
Comments
Hi @ibleaman, from my understanding of what is explained in Bootstrap's documentation, if you want to enable RTL in Bootstrap-powered pages you need to include the RTL version of the CSS. |
@TommasoAllegretti Thank you for your quick response! Yes, I did overlook that step on the RTL documentation page. Using the RTL version of Bootstrap fixes the problem in my jsfiddle link 2. However, it creates the same alignment problem if you use it in link 1, because
So: Is there no way to use a single Bootstrap 5 CSS file on a multilingual website, whether the original version or the RTL version, so that it works across all pages regardless of their direction? The documentation on spacing suggests that this is exactly what
The RTL documentation page also suggests that I thought this was supposed to be an improvement over Bootstrap 4, which used |
I am not sure what the evolution of Bootstrap regarding this feature is, but according to "LTR and RTL at the same time", the solution to your problem should be RTLCSS String Maps. |
I'm closing this issue, as importing the RTL version of Bootstrap 5 is good enough for my use case. Thanks again @TommasoAllegretti ! |
I came across some alignment problems when adding a navbar to a multilingual website, where some of the pages have
dir="rtl"
specified in the root. Here are minimal examples:Bootstrap 5.3.3 defines
.ms-auto
(and other.ms-
values) based onmargin-left
. Also,.navbar-brand
is defined with amargin-right
property.The text was updated successfully, but these errors were encountered: