# Bug Report: Button alignment

**URL:** <https://cl.desmos.com/t/bug-report-button-alignment/1248>\
**Category:** Bug Reports\
**Created:** [July 24, 2020, 6:43pm UTC](https://cl.desmos.com/t/bug-report-button-alignment/1248 "2020-07-24T18:43:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Gleeson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mike_gleeson/32/650_2.png) [@Mike\_Gleeson](https://cl.desmos.com/u/Mike_Gleeson)\
**Post date:** [July 24, 2020, 6:43pm UTC](https://cl.desmos.com/t/bug-report-button-alignment/1248/1 "2020-07-24T18:43:57Z")

</div>

Not a question, just an error in layout that should be addressed for button alignment in certain situations. In certain situations buttons are left-aligned(extremely) when they should be centered, such as this:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/1X/b0daa218bcf9f547ca02bddf972bf836a4e2ed8a.png)

Devtools tells me the problem is in the CSS here:

```auto
.dcg-action-button-playground {
    text-align: left;
}

```

Change the CSS `text-align:` attribute property to `center` and everything will be fixed.

Or perhaps more semantically considering the way the rest of the layout goes, set the `display` attribute to `block`.

Or is this all intended?

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [July 24, 2020, 7:12pm UTC](https://cl.desmos.com/t/bug-report-button-alignment/1248/2 "2020-07-24T19:12:58Z")

</div>

Thanks Mike, I’ll forward this to the team

---

<div class="post-metadata">

**Author:** ![Jme](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jme/32/516_2.png) [@Jme](https://cl.desmos.com/u/Jme)\
**Post date:** [September 30, 2020, 2:47pm UTC](https://cl.desmos.com/t/bug-report-button-alignment/1248/3 "2020-09-30T14:47:26Z")

</div>

Is there a way to make the action button align to the right margin?  
When I put the button under a component on the Left side, I’d like the button to be under the component, on the right.
