I’m trying to make the buttons in the header start off as transparent and then on hover go to white (using code you guys provided). But the buttons always have a bg of #fafafa and then go transparent on hover, disregarding my css. I can’t figure out what is going wrong.
You’re only setting a background hover color on your button. You need to set a background color for the transparency to take effect. I’ve done the change on the first button only so you can check. I will also file a bug report regarding the first issue.
I believe you’re following the code in this KB article. If so, your code should look like this…
.fl-builder-content .black-hover a.fl-button:hover {
background: #FFF;
border: 1px solid #FFF; /*Border width must be the same with the Button module*/
}
Note: black-hover is the class you’ll need to add to your Button module.
The reason why you have to select a background color before the button will become transparent, is because the background option is used to color the border. If you want no border set the width to zero.
In regards to your code not working. You can either add the !important declaration to your CSS or use the following: