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

Marrer created an issue. See original summary.

flashwebcenter’s picture

Component: Miscellaneous » User interface
Assigned: Unassigned » flashwebcenter
Status: Active » Closed (works as designed)
Issue tags: +drupal8 w3css Theme, +menu

Hello,
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.

 .ul-parent-global li:nth-child(5) a,
 .ul-parent-global li:nth-child(6) a {
    text-align:right!important;
}
flashwebcenter’s picture

Status: Closed (works as designed) » Fixed
flashwebcenter’s picture

Status: Fixed » Closed (fixed)
flashwebcenter’s picture