# cssClass style the Button in ActionSheet in Ionic 2

**URL:** <https://forum.ionicframework.com/t/cssclass-style-the-button-in-actionsheet-in-ionic-2/83658>\
**Category:** ionic-v3\
**Created:** [March 21, 2017, 2:50pm UTC](https://forum.ionicframework.com/t/cssclass-style-the-button-in-actionsheet-in-ionic-2/83658 "2017-03-21T14:50:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil\_co](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@phil\_co](https://forum.ionicframework.com/u/phil_co)\
**Post date:** [March 21, 2017, 2:50pm UTC](https://forum.ionicframework.com/t/cssclass-style-the-button-in-actionsheet-in-ionic-2/83658/1 "2017-03-21T14:50:51Z")

</div>

Is it possible to style the button and center the text in an Actionsheet? I have tried everything but didn’t figure out ow to style it… any help?

My code looks like this:

```
let actionSheet = this.actionSheetCtrl.create({
         cssClass: 'action-sheets-basic-page',
         buttons: [
           {
             text: 'Archive',
             cssClass:'yellow-color',
           }
         ],
         
       })
       actionSheet.present();

```

My css would look like this:

```
.action-sheets-basic-page{

.yellow-color{
height: 40vh;
left:37%;
}
}
```

---

<div class="post-metadata">

**Author:** ![ChrisGriiffith](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chrisgriiffith/32/66576_2.png) [@ChrisGriiffith](https://forum.ionicframework.com/u/ChrisGriiffith)\
**Post date:** [March 21, 2017, 4:42pm UTC](https://forum.ionicframework.com/t/cssclass-style-the-button-in-actionsheet-in-ionic-2/83658/2 "2017-03-21T16:42:21Z")

</div>

Your CSS is scoped wrong. .yelllow-color does not need to be nested within .action-sheets-basic-page
