Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice to add the option to right align the Main Menu through Bootstrap Settings by adding the .navbar-right class from docs.
In the interim, the following CSS works fine.
.navbar-nav {
float: right;
}
Comments
Comment #1
markhalliwellThe
.navbar-right
class is for the actual elements inside the navbar, not the navbar itself. Also given that this would require unique logic to determine which element you would actually want to make float right, there is no good generic way to do this in the base-theme. This will have to remain as a "per use case" implementation in sub-themes.Comment #2
waverate CreditAttribution: waverate commentedMark, thank you for the quick reply.