# Background for Button not Displaying in Stack View

**URL:** <https://forums.kodeco.com/t/background-for-button-not-displaying-in-stack-view/117348>\
**Category:** macOS\
**Created:** [August 12, 2020, 11:09pm UTC](https://forums.kodeco.com/t/background-for-button-not-displaying-in-stack-view/117348 "2020-08-12T23:09:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiwiandthemango](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kiwiandthemango/32/81494_2.png) [@kiwiandthemango](https://forums.kodeco.com/u/kiwiandthemango)\
**Post date:** [August 12, 2020, 11:09pm UTC](https://forums.kodeco.com/t/background-for-button-not-displaying-in-stack-view/117348/1 "2020-08-12T23:09:32Z")

</div>

I’m following a lesson on Stack Views and was told to duplicate a button within my stackview so that I would have four - instead of just three - buttons. Upon duplicating the button in the stack (the new button is the third button down), The very first original button (which says Treasure Map) now appears strangely. I do not see the background image of the button at all, despite the fact that the background is indeed selected in the attributes panel.

I’ve included a couple of screenshots to show what’s happening - with one capturing the size panel and the other showing the attributes panel on the right (re the problematic button). Does anyone know why this is happening or how I can change it?

I’ve uploaded images that show my screen verses the Ray Wenderlich lesson, below.

[Screen Shot 2020-08-13 at 12.58.50 AM|690x321](https://forums.kodeco.com/uploads/short-url/pDpv1P01FXntlgIGmGixqDEqlFC.jpeg) ![Screen Shot 2020-08-13 at 12.59.10 AM](https://files.chunter.kodeco.com/original/3X/b/7/b77693be3f528daab40491bd4bfc4b824beb036c.jpeg)

![Screen Shot 2020-08-13 at 12.58.50 AM](https://files.chunter.kodeco.com/original/3X/b/3/b3aad843d4988da71ab6958e09f29842d8ffe838.jpeg)

**EDIT: I changed the Horizontal Content Hugging to 250 for each button (previously, each was at 750). This seems to have made a big difference, now all of the backgrounds for my buttons are visible, but I would still like to understand why exactly. Thank you.**

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 7, 2021, 10:28am UTC](https://forums.kodeco.com/t/background-for-button-not-displaying-in-stack-view/117348/3 "2021-04-07T10:28:00Z")

</div>



---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 7, 2021, 10:28am UTC](https://forums.kodeco.com/t/background-for-button-not-displaying-in-stack-view/117348/4 "2021-04-07T10:28:15Z")

</div>

@kiwiandthemango Do you still have issues with this?
