# Cookie Button Decline Backgroundcolor Change

**URL:** <https://community.hubspot.com/t/cookie-button-decline-backgroundcolor-change/55929>\
**Category:** CMS Development\
**Created:** [April 29, 2022, 9:01am UTC](https://community.hubspot.com/t/cookie-button-decline-backgroundcolor-change/55929 "2022-04-29T09:01:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MBaars](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mbaars/32/14279_2.png) [@MBaars](https://community.hubspot.com/u/MBaars)\
**Post date:** [April 29, 2022, 9:01am UTC](https://community.hubspot.com/t/cookie-button-decline-backgroundcolor-change/55929/1 "2022-04-29T09:01:30Z")

</div>

Hello all,

I have a question about the appearance of the cookie banner.

I would very much like to change the background color of the “Decline” button. Unfortunately, in HubSpot’s settings I can only customize the “Accept” button.  
How can I change the appearance of the “ **Decline** ” button in HubSpot?

I would be very grateful for any help.  
Martin

 ![HubSpot-Settings.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/7/b7637c8712d72cdfda290e4bae4af64b6953745f.png)

 ![Cookie-Banner-on-Website.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/160f316ffff5b7a193adc3cb1402864efc267c7f.png)

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [April 29, 2022, 6:00pm UTC](https://community.hubspot.com/t/cookie-button-decline-backgroundcolor-change/55929/2 "2022-04-29T18:00:48Z")

</div>

Hi @MBaars ,

If you can add CSS to your website, try the following:

```lia-code-sample
div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner a#hs-eu-decline-button {
 background-color: #000 !important; // Change this color code for the background color
 color: #fff !important // Change this color code for the text color
}

```

---

<div class="post-metadata">

**Author:** ![MBaars](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mbaars/32/14279_2.png) [@MBaars](https://community.hubspot.com/u/MBaars)\
**Post date:** [May 2, 2022, 7:15am UTC](https://community.hubspot.com/t/cookie-button-decline-backgroundcolor-change/55929/3 "2022-05-02T07:15:26Z")

</div>

Hi Teun,  
wow, thank you very much, its works!
