I have a short question regarding my styling. I'm trying to get my drop down menu styled using CSS.
So when I'm changing the background image of the "main" menu items, the dropdown part also gets the same styling. I figured it should be easy to get only the "dropping down" part. But what do I use in my code?
It needs to have a margin and a fixed width and a different background from the main menu entries.
The main selector for the element is '#access a'.
I hope i've explained it clear enough!
Thanks in advance for your feedback.
HTML
<a href="http://wattel.nl/?page_id=13">Motor</a>
<ul class="sub-menu">
<li id="menu-item-46" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-46">
<a href="http://wattel.nl/?page_id=29">Algemeen</a>
</li>
</ul>
It's just a basic wordpress menu. And the menu is styled by this CSS:
#access a {
background-image: url('images/menubg.png');
min-width: 200px;
font-family: trebuchet MS;
text-align: center;
font-size: 24px;
line-height: 32px;
color: #fff;
text-transform: none;
height: 44px;
}
So now the secondary menu-items also have the menubg.png, and i'd like them to be a different style.