Site logo

Archived topic

secondary-menu position help

4 replies · Started by Danny on October 23, 2018

Viewing posts 1–5 of 5

hello,

I would like to align the secondary menu which I am using for blog posts on the right of the first-time home buyer's faq post.
See yellow arrow in the photo below, please.

sample image

I am using this code to style the secondary-menu:
`/* secondary nav links effect */
@media (min-width: 769px) {
.secondary-navigation .secondary-menu > .menu-item> a::after {
content: "";
position: absolute;
right: 0;
left: 50%;
bottom: 20px;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);

display: block;
width: 0;
height: 2px;

background-color: currentColor;
transition: 0.3s width ease;
}
.secondary-navigation .secondary-menu > .menu-item.current-menu-item > a::after,
.secondary-navigation .secondary-menu > .menu-item.current-menu-ancestor > a::after,
.secondary-navigation .secondary-menu > .menu-item > a:hover::after {
width: 50%;
}
}

screenshot

Hi there,

You could try something like this:

#secondary-navigation {
    max-width: 1215px;
}

That works, thanks!

You're welcome :)

This archived topic is closed to new replies.