Problem introducing a pill-button in menu
-
I would like to add a coloured button to the menu-line in a child-theme to twentytwelve, by decorating one of the link in my menu line.
For this purpose I found this How TO – Pill Buttons on w3schools.com
So following is now added to my CSS:.main-navigation li.menu-item-19587 {
background: dodgerblue;
border: none;
color: yellow;
padding: 0px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
margin: 0px 0px;
border-radius: 30px;
font-stretch: expanded;
font-weight: bold;
}
.main-navigation li.menu-item-19587 a:hover {
color: yellow;
background: blue;
padding: 0px 0px;
text-align: center;
text-decoration: none;
display: inline-block;
margin: 0px 0px;
border-radius: 30px;
font-stretch: expanded;
font-weight: bold;
}1) the theme does not respond to the “color: white”
2) the hover part of the CSS should according to w3schools.com only contain one line – background-color – in order to work, I had to add everything else, otherwise the button would be a simple square.
3) the button is still wrong and not completely changing colour when hovering.php version on webpage is 7.3
The page I need help with: [log in to see the link]
- The topic ‘Problem introducing a pill-button in menu’ is closed to new replies.