Categories
Dev

Change dropdown align to right underscores.me

The dropdown sub menus for underscores.me by default align left.

If you need to change it to align right, go into style.css “# Menus” and change the following lines:


.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
left: auto;
right: 0%;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
right: 100%;
}

By Hugo Gameiro

I run Masto.host, a fully managed hosting solution for Mastodon instances and Nuvens.pt, a Portuguese hosting service for websites.
mastodon | email