margin
to the Top Level Menu items and it is pushing the Dropdown menu down.margin: 20px 0;
which means 20px margin on the top and 20px margin on the bottom. You can change that to margin: 20px 0 0;
which means 20px margin only on the top.// You need to import the Dependencies only once, at the very top of the "custom.scss" file.
// If you already have it, do not import it again.
@import "dependencies";
#g-header {
.g-main-nav {
.g-toplevel {
> li {
// Styling for the default state of the Top Level Menu items
> .g-menu-item-container {
}
// Styling ONLY for the Active state of the Top Level Menu items.
&.active {
> .g-menu-item-container {
}
}
// Styling ONLY for the Hover state of the Top Level Menu items.
&:hover {
> .g-menu-item-container {
}
}
}
}
// Styling for the Dropdown
.g-dropdown {
.g-sublevel {
> li {
// Styling for the default state of the Dropdown items
> .g-menu-item-container {
}
&.active {
// Styling ONLY for the Active state of the Dropdown items
> .g-menu-item-container {
}
}
&:hover {
// Styling ONLY for the Hover state of the Dropdown items
> .g-menu-item-container {
}
}
}
}
}
}
}
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »