Hi there,
I’m trying to add a hover state to the submit buttons on my page and it’s only half working right now. My goal is to give them the same hover as the other buttons on the page. Right now the arrow isn’t showing up when I hover over the button and I can’t seem to figure out why. I’m using the same CSS that worked perfect for the home page slider buttons. All I did was change the class names. Any suggestions would be greatly appreciated. The code I added to the quick css field is below and I’ve included the link to the page in the private content section.
Thanks,
Max
input.button{
cursor: pointer !important;
display: inline-block !important;
position: relative !important;
width:220px !important;
}
input.button:after {
content: ‘\e875’ !important;
font-family: ‘entypo-fontello’ !important;
margin-left:0px !important;
opacity: 0 !important;
top: 14px !important;
transition: 0.1s !important;
}
input.button:hover {
padding-right: 24px !important;
padding-left:8px !important;
transition: 0.2s !important;
}
input.button:hover:after {
opacity: 1 !important;
margin-left: 10px !important;
}
Hey HU_Dallas,
Thank you for the inquiry.
You can’t create pseudo elements in an input or form field. Try this css code instead.
.form_element:nth-child(6)::before {
content: '';
opacity: 0;
position: absolute;
right: 180px;
font-family: 'entypo-fontello';
top: 15px;
z-index: 100;
color: white;
transition: all 0.1s linear;
}
.form_element:hover::before {
opacity: 1;
}
Best regards,
Ismael
Works perfect! Thank you so much for your quick response you guys are the best!
Hi HU_Dallas,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria