Button :Focus colour same as :hover
-
So i have some buttons on my services on the page of hcldesign.co.uk which is my website I am developing.
I have these buttons changing colour on hover by using elementor page builder. I am wanting for all buttons on my site to be able to apply the hover colour when the button is clicked.
I have made this possible per button by using the below code but as you can see i would have to find every button and change the button reference. Not ideal and will be a lot of CSS in my additional CSS field.
.elementor-130 .elementor-element.elementor-element-043fopq a.elementor-button:focus, .elementor-130 .elementor-element.elementor-element-043fopq .elementor-button:focus { color: #ffffff; background-color: #c335eb; border-color: #c335eb; }
So does anyone know anyway in which I can use CSS to apply the :hover colour when a button is clicked such as :focus? So when a button is clicked it just keeps the :hover effect active?
Thanks,
Harvey
The page I need help with: [log in to see the link]
- The topic ‘Button :Focus colour same as :hover’ is closed to new replies.