Applying css styles to buttons

Dov created the topic: Applying css styles to buttons

Hello,

I am using the styling options available for text to add a border to a button, text link. For hover states, I'd like to be able to specify in the css option available in settings.

I have added some css:

.book:hover,
.book:focus {
color: #ffffff !important;
text-decoration: none !important;
background: rgba(255,255,255,0.3) !important;
}


Then applied that to my button like this:
<div class="book"><a href="#book-now"><strong>BOOK ONLINE</strong></a></div>

but the color and underlining of the text hasnt changed.

Is there a better way of applying styles to existing please?

Many thanks
Dov

#58749

Please Log in or Create an account to join the conversation.


Agapi G. replied the topic: Applying css styles to buttons

Hi Dov!

Thank you for posting about this problem!
Could you please give the link to your website, where we could see the slider? Please mention which button you are implementing these styles to. We will check the CSS and provide you a solution.

Thanks in advance!


Kind regards,
Agapi G.
Web-Dorado team
#58833

Please Log in or Create an account to join the conversation.


Dov replied the topic: Applying css styles to buttons

Hi Agapi

thanks alot for your response!

The banner is on a test page at the moment www.citydoc.org.uk/a-test-form/

The Book Online button is the one I am working on, I'm trying to get the background on hover to fill the box and the text to stay white without underline. I have a feeling that I need to target your style names instead of using my own?

Many thanks for your help it is really appreciated.
Kind regards
Dov

#58837

Please Log in or Create an account to join the conversation.


Agapi G. replied the topic: Applying css styles to buttons

Thank you for the link, Dov!

Could you please try adding the following CSS code to custom CSS option of your slider?

.book a:hover,
.book a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background: rgba(255,255,255,0.3) !important;
}

It applies on the button, rather than the block surrounding it. Let me know if it works.
Thank you!


Kind regards,
Agapi G.
Web-Dorado team
#58855
The following user(s) said Thank You: Dov

Please Log in or Create an account to join the conversation.


Time to create page: 0.186 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us