Is there any way to apply different styling within one button text element?

Is there a way to apply different styling within one button text element?
For example, when the button text is “Let’s go to Chile”, I want to display “Chile” in red color and bold letter and the reset in black color

Since I am using button element, I can combine two text element together.
image

You can use inline CSS, similar to the attached image. Alternatively, if the button doesn’t need to submit a form, you can style a DIV element to look like a button and place text inside.

Awesome! thanks for quick help! :grinning:

1 Like