# Cta hover text color

**URL:** <https://community.hubspot.com/t/cta-hover-text-color/28021>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [November 16, 2020, 2:48am UTC](https://community.hubspot.com/t/cta-hover-text-color/28021 "2020-11-16T02:48:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyKaq](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kykaq/32/29368_2.png) [@kyKaq](https://community.hubspot.com/u/kyKaq)\
**Post date:** [November 16, 2020, 2:48am UTC](https://community.hubspot.com/t/cta-hover-text-color/28021/1 "2020-11-16T02:48:39Z")

</div>

Hi, I wanted to have the hover effect on the cat button however, when I try the hover, I successfully change the background-color to yellow, but it fail to change the text colour to white, even though I put #FFFFFF. Is it the code of the text in the button require different code rather than ‘color:’?

![34285i975356897994C5A1.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/0/9097f592947e5a93e8dfe1313c2f04452ce83533.png)

---

<div class="post-metadata">

**Author:** ![kyKaq](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kykaq/32/29368_2.png) [@kyKaq](https://community.hubspot.com/u/kyKaq)\
**Post date:** [November 16, 2020, 3:04am UTC](https://community.hubspot.com/t/cta-hover-text-color/28021/2 "2020-11-16T03:04:39Z")

</div>

I found the ans myself ald, it is because I didn’t set the text colour to the default.😅

---

<div class="post-metadata">

**Author:** ![jtit](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jtit/32/60590_2.png) [@jtit](https://community.hubspot.com/u/jtit)\
**Post date:** [November 16, 2020, 3:14am UTC](https://community.hubspot.com/t/cta-hover-text-color/28021/3 "2020-11-16T03:14:21Z")

</div>

Glad that hear that you managed to resolve this yourself!

---

<div class="post-metadata">

**Author:** ![jtit](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jtit/32/60590_2.png) [@jtit](https://community.hubspot.com/u/jtit)\
**Post date:** [November 16, 2020, 3:10am UTC](https://community.hubspot.com/t/cta-hover-text-color/28021/4 "2020-11-16T03:10:13Z")

</div>

Hi @kyKaq - thank you for the question! It’s not possible to add hover effects on the “custom CSS” section of CTAs. However, you can assign a class to your CTA, and in your stylesheet include the following.

```lia-code-sample
.myCTA:hover {
 background-color: #FED032;
 color: white;
}

```
