# How to design a single button in the header

**URL:** <https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982>\
**Category:** Website Builder\
**Tags:** cms\_code, cms\_element\
**Created:** [September 7, 2021, 9:33am UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982 "2021-09-07T09:33:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![FabianSalomon](https://avatars.discourse-cdn.com/v4/letter/f/e9c0ed/32.png) [@FabianSalomon](https://community.sitejet.io/u/FabianSalomon)\
**Post date:** [September 7, 2021, 9:33am UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/1 "2021-09-07T09:33:35Z")

</div>

Hello Dear Community,  
I would like to visually highlight the contact button  
from my menu bar so that it becomes a call-to-action button.!

The background should be white,  
the corners should be rounded (25px)  
and the font should be black.

I tried it with this code

//custom-customization for contact button  
.ed-menu ul li:last-child a {  
background: #fff;  
color: #2929; !important  
border-radius: 25px;  
}

but I get this error message

 ![Unbenannt](https://europe1.discourse-cdn.com/flex017/uploads/sitejet/original/1X/c11e52313d12a736c9ecb301dc5ffb5d6bed6082.jpeg)

What can I do?

---

<div class="post-metadata">

**Author:** ![mughal](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/mughal/32/1831_2.png) [@mughal](https://community.sitejet.io/u/mughal)\
**Post date:** [September 7, 2021, 1:37pm UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/2 "2021-09-07T13:37:44Z")

</div>

i think this panel using SCSS not CSS that’s why you got error.

---

<div class="post-metadata">

**Author:** ![Lucian\_Dinu](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/lucian_dinu/32/141_2.png) [@Lucian\_Dinu](https://community.sitejet.io/u/Lucian_Dinu)\
**Post date:** [September 7, 2021, 1:50pm UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/3 "2021-09-07T13:50:35Z")

</div>

> [@FabianSalomon](#):
>
> //custom-customization for contact button  
> .ed-menu ul li:last-child a {  
> background: #fff;  
> color: #2929; !important  
> border-radius: 25px;  
> }

Hi! There is a syntax error (as said in the error message). The `important` is written after the `;`  
Here is the correct snippet:

```auto
//custom-customization for contact button
.ed-menu ul li:last-child a {
    background: #fff;
    color: #2929 !important; 
    border-radius: 25px;
}

```

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Andre](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/andre/32/3459_2.png) [@Andre](https://community.sitejet.io/u/Andre)\
**Post date:** [September 8, 2021, 4:12pm UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/4 "2021-09-08T16:12:38Z")

</div>

Told ya @FabianSalomon😂 😍

And welcome to the Sitejet community!

---

<div class="post-metadata">

**Author:** ![FabianSalomon](https://avatars.discourse-cdn.com/v4/letter/f/e9c0ed/32.png) [@FabianSalomon](https://community.sitejet.io/u/FabianSalomon)\
**Post date:** [September 9, 2021, 11:57am UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/5 "2021-09-09T11:57:10Z")

</div>

Hey Lucian! **Many thanks** first of all for your kind help. This has worked very well. Thanks for your time. 🖤

I’m just so free and ask another question here.

Around the menu items a box appears when hovering over it. I don’t want this to happen with the contact button. instead it should turn red and the font should turn white when I hover over it.  
The other menu items should keep the box

---

<div class="post-metadata">

**Author:** ![Lucian\_Dinu](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/lucian_dinu/32/141_2.png) [@Lucian\_Dinu](https://community.sitejet.io/u/Lucian_Dinu)\
**Post date:** [September 10, 2021, 6:10am UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/6 "2021-09-10T06:10:57Z")

</div>

Hi! I guess it can be done, but there are multiple styling options for the menus.  
Here is the complete CSS for this, I don’t know if it will work with your menu (depends on the styling).

```auto
//custom-customization for contact button
//normal colors
.ed-menu ul li:last-child a {
    background: #fff;
    color: #2929 !important; 
    border-radius: 25px;
    border: none !important;
}
//hover colors
.ed-menu ul li:last-child a:hover {
    background: red;
    color: #fff !important; 
}

//hiding sitejet hover effects
.ed-menu ul li:last-child:hover a{
    &::before{
        display: none !important;
    }
    &::after{
        display: none !important;
    }
}

```

P.S. Another approach for this contact button at the end of the menu is to simply add a button

Hope this helps!

---

<div class="post-metadata">

**Author:** ![FabianSalomon](https://avatars.discourse-cdn.com/v4/letter/f/e9c0ed/32.png) [@FabianSalomon](https://community.sitejet.io/u/FabianSalomon)\
**Post date:** [September 13, 2021, 11:43am UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/7 "2021-09-13T11:43:10Z")

</div>

thanks for your effort. unfortunately it still did not work. an error comes out

 ![Unbenannt](https://europe1.discourse-cdn.com/flex017/uploads/sitejet/original/1X/12b37096b50673262fab44230e8725bd82c47d87.jpeg)  
@Lucian_Dinu

---

<div class="post-metadata">

**Author:** ![Lucian\_Dinu](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/lucian_dinu/32/141_2.png) [@Lucian\_Dinu](https://community.sitejet.io/u/Lucian_Dinu)\
**Post date:** [September 13, 2021, 12:10pm UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/8 "2021-09-13T12:10:16Z")

</div>

Hi! I think you are missing the `}` from the end.

 ![Screenshot 2021-09-13 at 15.08.34](https://europe1.discourse-cdn.com/flex017/uploads/sitejet/original/1X/0efa6051e24a84702d0dd6e500a4514b51cd6ca1.png)

---

<div class="post-metadata">

**Author:** ![Andre](https://dub1.discourse-cdn.com/flex017/user_avatar/community.sitejet.io/andre/32/3459_2.png) [@Andre](https://community.sitejet.io/u/Andre)\
**Post date:** [August 20, 2024, 11:34am UTC](https://community.sitejet.io/t/how-to-design-a-single-button-in-the-header/982/9 "2024-08-20T11:34:02Z")

</div>

Closed on August 20, 2024, 11:34am UTC


