# padding

> Space from the edge of GUIStyle to the start of the contents.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
public RectOffset padding { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Prints the left, right, top and down values of the GUIStyle overflow

    RectOffset rctOff;

    void OnGUI()
    {
        rctOff = GUI.skin.button.padding;
        Debug.Log("Left: " + rctOff.left + " Right: " + rctOff.right);
        Debug.Log("Top: " + rctOff.top + " Bottom: " + rctOff.bottom);
    }
}
```
