# Toggle button margin no longer moves image

**URL:** <https://forum.inductiveautomation.com/t/toggle-button-margin-no-longer-moves-image/35052>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [May 26, 2020, 6:22pm UTC](https://forum.inductiveautomation.com/t/toggle-button-margin-no-longer-moves-image/35052 "2020-05-26T18:22:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [May 26, 2020, 6:22pm UTC](https://forum.inductiveautomation.com/t/toggle-button-margin-no-longer-moves-image/35052/1 "2020-05-26T18:22:21Z")

</div>

I’m working on an upgrade from Ignition 7.9.10 to 8.0.10 (on a test server for now).

In 7.9.10 we have used the margin property of a Toggle button to control the position of an image on the button. This doesn’t appear to work in 8.0.10, although text in a toggle button does change position depending on the margin.

Is this known behavior? Is there another way to control the position of an image in a toggle button? The image was placed using the ‘Image Path’ property of the toggle button.

Toggle Button in 7.9.10. The label is a separate component on top of the toggle button.  
 ![Ign7](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/030c024973b863567a19edfce0e2d89941b1db92.png)

Toggle Button in 8.0.10  
 ![Ign8](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/509c92e99c1dae046f74ebb526f55bddaa41222f.png)

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [May 28, 2020, 10:25pm UTC](https://forum.inductiveautomation.com/t/toggle-button-margin-no-longer-moves-image/35052/2 "2020-05-28T22:25:31Z")

</div>

For anyone who lands here in the future it turns out I’m just partially crazy. What I described was happening and persisted on copies of that button, but when I created a new toggle button, it behaved as I expected it to; changing the margin did move the image.
