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.
Is it possible in this theme to take a single menu (not all menus, just a specific one) with only one or two items/links and have them right-justified instead of the usual left-justified?
Comments
Comment #2
flashwebcenterHello,
It can be done in many ways. The easy way for you is to use CSS3 :nth-child() Selector. https://www.w3schools.com/cssref/sel_nth-child.asp
You will target each element.
Example: If you have a menu name global. You will have the following code to target the fifth and sixth element.
Comment #3
flashwebcenterComment #4
flashwebcenterComment #5
flashwebcenter