# inspectorDefaultMargins

> Wrap content in a vertical group with this style to get the default margins used in the Inspector.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static GUIStyle inspectorDefaultMargins { get; }
```

### Remarks

By default, content in the Inspector has a large left margin and a small right margin. For a consistent look, these default margins should be used for most GUI with regular controls.

However, some special GUI elements may benefit from occupying the full width of the Inspector, with only a small margin in both sides. To disable the default margins, override the [Editor.UseDefaultMargins()](/engine/6000.0/script-reference/unityeditor/editor/usedefaultmargins.md) method in your custom Editor. Then you can wrap your GUI content inside a vertical groups to your liking. For example, you can wrap some of the GUI inside a vertical group with the [EditorStyles.inspectorFullWidthMargins](/engine/6000.0/script-reference/unityeditor/editorstyles/inspectorfullwidthmargins.md) style and wrap other parts of the GUI inside a vertical group with the [EditorStyles.inspectorDefaultMargins](/engine/6000.0/script-reference/unityeditor/editorstyles/inspectordefaultmargins.md) style.

Additional Resources: [EditorGUILayout.BeginVertical](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginvertical.md), [EditorGUILayout.EndVertical](/engine/6000.0/script-reference/unityeditor/editorguilayout/endvertical.md), [Editor.UseDefaultMargins()](/engine/6000.0/script-reference/unityeditor/editor/usedefaultmargins.md), [EditorStyles.inspectorFullWidthMargins](/engine/6000.0/script-reference/unityeditor/editorstyles/inspectorfullwidthmargins.md).
