# 8.0.8-rc1 missing margin in Edit Style window

**URL:** <https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057>\
**Category:** Ignition Early Access\
**Created:** [February 7, 2020, 6:35pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057 "2020-02-07T18:35:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtran](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vtran](https://forum.inductiveautomation.com/u/vtran)\
**Post date:** [February 7, 2020, 6:35pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/1 "2020-02-07T18:35:09Z")

</div>

If I remember correctly, there used to be options for margin in previous version. Padding is still available but not Margin.

Also, it would be nice if we can edit the raw values of these styles similarly to how we can edit the json content of the views by holding shift and right click on the the view and copy/paste json.

Thanks

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [February 13, 2020, 2:42pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/2 "2020-02-13T14:42:36Z")

</div>

Margins were causing problems with some elements in Perspective so they were removed. Official response can be found here:

> [@\[Bug-16011\]8.0.8 Perspective - Margins missing in styles](http://forum.inductiveautomation.com/t/8-0-8-perspective-margins-missing-in-styles/32192/2):
>
> You can still manually add margin as a style property, but my understanding is that the margin property caused issues in some containers which resulted in confusion. Coordinate containers for example display coordinates for a component in one location, but large margins actually render it somewhere else. We haven’t stopped supporting margins, nor have we prevented users from using margins, but due to the problems margins caused some users the decision was made to hide the option.

---

<div class="post-metadata">

**Author:** ![ayu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ayu/32/16635_2.png) [@ayu](https://forum.inductiveautomation.com/u/ayu)\
**Post date:** [February 13, 2020, 4:09pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/3 "2020-02-13T16:09:14Z")

</div>

Just to be clear, the margins attributes have not been removed. They just won’t show up as an editable option in the style editor. If you need margins, you can add them in manually through the JSON editor.

EDIT: Noticed that this an issue for style classes, where you wouldn’t be able to edit existing margins.

---

<div class="post-metadata">

**Author:** ![vtran](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vtran](https://forum.inductiveautomation.com/u/vtran)\
**Post date:** [February 13, 2020, 6:17pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/4 "2020-02-13T18:17:59Z")

</div>

The issue I have right now is that the compiled css file would ignore all the margin in the style classes.  
I have to add margins in the theme css file manually since it would take a lot of effort to go to each component that uses style class with margin and add them in manually.  
E.g. here’s what the style.json file for the Card style

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/bc7429d3a96eac874531851017d324586a29597e.png)

and this is what shows up in the compiled style.css file  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8d49b9d9d4c3a568bb39539d1d1e8e2717dc6c33.png)

---

<div class="post-metadata">

**Author:** ![ayu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ayu/32/16635_2.png) [@ayu](https://forum.inductiveautomation.com/u/ayu)\
**Post date:** [February 14, 2020, 6:28pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/5 "2020-02-14T18:28:40Z")

</div>

Agreed. There is currently a pending fix. I will keep you posted when it gets moved forward.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [February 14, 2020, 8:02pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/6 "2020-02-14T20:02:27Z")

</div>

I hope it return to style class again.

---

<div class="post-metadata">

**Author:** ![ayu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ayu/32/16635_2.png) [@ayu](https://forum.inductiveautomation.com/u/ayu)\
**Post date:** [February 18, 2020, 4:36pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/7 "2020-02-18T16:36:29Z")

</div>

In case anyone missed this.

> [@Bug in 8.0.8, expedited 8.0.9 release](http://forum.inductiveautomation.com/t/bug-in-8-0-8-expedited-8-0-9-release/32296):
>
> Hi folks. We found a notable bug in 8.0.8 after release. As a result, we’re in the process of building 8.0.9 installers, which contains a fix for the bug. Ignition 8.0.9 should be available later today, or soon after. The Issue 8.0.8 introduces a new style editor for Perspective. Currently, the style editor, which is also used to edit style classes, does not have options for margins. Meaning there isn’t a way to add margins to style classes, nor can you edit margin settings on them… Unfortunat…

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [February 26, 2020, 10:08pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/8 "2020-02-26T22:08:15Z")

</div>

> [@\[Bug-16011\]8.0.8 Perspective - Margins missing in styles](http://forum.inductiveautomation.com/t/bug-16011-8-0-8-perspective-margins-missing-in-styles/32192/13):
>
> The next nightly posted should contain a re-introduction of Margin and Padding. We’ve also introduced a new layout for visualizing how margin and padding behave on a component and how the border fits into everything. In the following screenshot, I’ve supplied values for margin and padding. The UI will display placeholders in the more-specific inputs so that you can more easily see where margin and padding settings are applied. I have also supplied a value in the margin-top input (note it is bla…

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [February 27, 2020, 6:16am UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/9 "2020-02-27T06:16:57Z")

</div>

Thanks that’s great news. Does it include in style class for animation?

---

<div class="post-metadata">

**Author:** ![ayu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ayu/32/16635_2.png) [@ayu](https://forum.inductiveautomation.com/u/ayu)\
**Post date:** [February 27, 2020, 4:07pm UTC](https://forum.inductiveautomation.com/t/8-0-8-rc1-missing-margin-in-edit-style-window/32057/10 "2020-02-27T16:07:56Z")

</div>

Hi @nader.chinichian,

Yes, it should be included for animated style classes.
