Loading...
 
Skip to main content

Features / Usability


How can elements of a (horiz.) menu be aligned vertically?

Gary Cunningham-Lee wrote:

Hi,
You can try applying a CSS rule like this:

.nav-link { display:flex; align-items: center; justify-content: center; }

This should work but maybe the selector should be more specific to avoide unwanted side effects in other instances of .nav-link.

-- Gary


Thanks, I'll give it a try. But could those side effect be ruled out by not editing the global CSS, but inserting CSS into the menu module via the module configuration? It's a regular menu module assigned in topbar position...