> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# padding:top

[localhost link]: http://localhost:3000/docs/4/app-studio/reference/tags/lightning.directive.paddingTop

[mintlify link]: https://doc.lucidworks.com/docs/4/app-studio/reference/tags/lightning.directive.paddingTop.md

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/1164.md

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Description

Adds a class for padding top based on attribute value

## Usage

as attribute

```xml wrap  theme={"dark"}
<ANY padding-top="{number}">
   ...
</ANY>
```

#### Parameters

| Param | Type | Details |
| - | - | - |
| padding-top | **number** | Amount of padding to include, acceptable values (0, 0.25, 0.5, 1 and 2) |

## Example

#### Source

```xml wrap  theme={"dark"}
<p style="bg-tertiary text-tertiary-contrast" padding-top="2">
    Check out my padding at the top (padding-top="2")
</p>
<p style="bg-tertiary text-tertiary-contrast" padding-top="1">
    Check out my padding at the top (padding-top="1")
</p>
<p style="bg-tertiary text-tertiary-contrast" padding-top="0.5">
    Check out my padding at the top (padding-top="0.5")
</p>
<p style="bg-tertiary text-tertiary-contrast" padding-top="0.25">
    Check out my padding at the top (padding-top="0.25")
</p>
<p style="bg-tertiary text-tertiary-contrast" padding-top="0">
    Check out my padding at the top (padding-top="0")
</p>
```

#### Result

![Result](https://mintcdn.com/lucidworks/ENcE8K39c0iEpL8J/assets/images/app-studio/as-examples/tags/paddingTop.png?fit=max\&auto=format\&n=ENcE8K39c0iEpL8J\&q=85\&s=1a1b0985db26c1deafc42ceed4df9171)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.