Styling the sub-menu.
-
Hi, I am trying to style and align my sub-menu under Buy Art. I have searched for the answer and have found various css solutions to try but not many for Twenty Seventeen and the code I have at the moment is really messy and I don’t like using !important in css. Also it’s not exactly what I want.
.sub-menu {font-size: 12px;
border-color: transparent !important;
}
.sub-menu a:hover { color: #800000 !important; }
.sub-menu li a:hover {
background-color: #ffffff;
}
.sub-menu li a {
padding: 5px !important;
}
.main-navigation ul li.menu-item-has-children.focus:before,
.main-navigation ul li.menu-item-has-children:hover:before,
.main-navigation ul li.menu-item-has-children.focus:after,
.main-navigation ul li.menu-item-has-children:hover:after,
.main-navigation ul li.page_item_has_children.focus:before,
.main-navigation ul li.page_item_has_children:hover:before,
.main-navigation ul li.page_item_has_children.focus:after,
.main-navigation ul li.page_item_has_children:hover:after {
display: none;
}
#menu-item-1932 a{
color: #000000 !important;
}
#menu-item-1929 a{
color: #800000!important; }
#menu-item-1922 a{
color: #800000 !important;
}I have left the css there for the time being to give you an idea of what i’m trying to achieve. I can remove it if that helps.
What I would like is as follows –
The text in the sub-menu to be aligned directly from the beginning of the B.
Remove the arrow in the sub-menu.
“Buy Art” to stay black on hover with no pointer showing when hovering over.
The sub-menu to have no border and a white background.
The sub-menu text to be black but turn red on hovering.
When hovering over sub-menu a grey colour flashes up for a second, i’d like to stop this happening.I have learnt some css and have a child theme. Sorry, it seems a lot to ask, but I would be grateful if someone could point me in the right direction please.
The page I need help with: [log in to see the link]
- The topic ‘Styling the sub-menu.’ is closed to new replies.