> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/cdp-365-user-guide-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/cdp-365-user-guide-en/marketing-hub/email-template/settings/blocks-and-settings/button.md).

# Button

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FOmVeGQnsu6kMNLe5l3Sa%2Fimage.png?alt=media&amp;token=d77dfa06-179c-4fed-98ba-db54965b9936" alt=""><figcaption></figcaption></figure>

## Content

### Button

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2F8q7lIzVbaytLxYZ0KMO7%2Fimage.png?alt=media&amp;token=771c5362-3ec4-417c-87e6-56e575310dc8" alt=""><figcaption></figcaption></figure>

#### Button Text

The text displayed on the button&#x20;

#### Button Click Action

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2Fpr0wWlSViGHxj3pNQ4gq%2Fimage.png?alt=media&amp;token=58f3cf73-cbb4-4648-b044-3b341a03fa17" alt=""><figcaption></figcaption></figure>

* ***Open email client***: Enter the email that recipient should send to
* ***Click to call***: Enter the Phone number
* ***Open in the new window***
  * ***Static***: Enter text
  * ***Dynamic***: Select field and index

#### Width&#x20;

It allows you to change the width of the button in pixel or %

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FOrdKqG4NL2746Ggc2Ln1%2Fimage.png?alt=media&amp;token=89fd8a2b-1864-41f8-bdc2-4d228204d809" alt=""><figcaption></figcaption></figure>

#### Align

It allows you to change the alignment of the button (left, center, right)

#### Button Size

The size of the button includes X Small, Small, Medium, Large, X Large, X2 Large

## Advanced

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FOoyY50EcXg5ldwNuBLYx%2Fimage.png?alt=media&amp;token=ac6d9a94-1f15-4439-8a64-6388bb2810f6" alt=""><figcaption></figcaption></figure>

### Button Styling

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2Fr2JoUsqbcm0kdmHdB8gk%2Fimage.png?alt=media&amp;token=68fc2da0-0c6d-4a1f-9e4b-c557d3ba2e71" alt=""><figcaption></figcaption></figure>

#### **Background color:**

Apply background color of Button block.

#### Font Settings

It includes Font family, Font color, Font size, Font weight, Line height, Letter spacing, etc.

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2Fm7zue7P3l2ND3qFrMJK5%2Fimage.png?alt=media&amp;token=cd2ea2de-8348-48f4-ba4c-6e75c17d95b0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FAF0yTdioSG4gZYCdzcW7%2Fimage.png?alt=media&amp;token=d5e29d7b-3393-4310-a49c-e0d994ef35a2" alt=""><figcaption></figcaption></figure>

#### Border

It allows you to specify the style, width, and color of an element's border

#### Rounded Corners

It allows you to define the radius of an element's corners

#### Spacing

* ***Inner Spacing (Padding)***: \
  Padding is inside the border (or edge) of your element. Increasing the padding will “push” your content into the middle of your box, away from your borders. If you remove the padding, your content will take up the entire box
* ***Outer Spacing (Margin)***: \
  Margin is on the outside of the border of your element. If you increase the margin, it will increase the space between this element and the ones next to it. If you remove your margin, there will be no extra space between your elements

### Container Styling

#### **Background color:**

Apply background color of Text block.

#### **Border**

It allows you to specify the style, width, and color of an element's border

#### **Spacing**

* ***Inner Spacing (Padding):*** \
  Padding is inside the border (or edge) of your element. Increasing the padding will “push” your content into the middle of your box, away from your borders. If you remove the padding, your content will take up the entire box
* ***Outer Spacing (Margin):*** \
  Margin is on the outside of the border of your element. If you increase the margin, it will increase the space between this element and the ones next to it. If you remove your margin, there will be no extra space between your elements

#### Z-Index

* The z-index property specifies the stack order of an element
* An element with greater stack order is always in front of an element with a lower stack order

#### Custom ID attribute

The ID of a block, which is used in ***Custom CSS, Custom Javascript***

#### Custom Class attribute

The class of a block, which is used in ***Custom CSS, Custom Javascript***

### **Responsive Design**

The specific settings in this section will vary depending on device type designing

**Desktop mode**:

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FcgjSblKKeIhbeZGJueZs%2Fimage.png?alt=media&amp;token=6abef7bc-f1f8-40b9-b83f-653175b49907" alt=""><figcaption></figcaption></figure>

Hide on Desktop: Hide the Column block when recipient reads the email template on Desktop.

&#x20;

**Mobile mode**:

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FgQW1ODqdcnDDkMCmoQgr%2Fimage.png?alt=media&amp;token=1cb2b039-0b1b-410a-b8ac-128256215cec" alt=""><figcaption></figcaption></figure>

Hide on Mobile: Hide the Column block when recipient reads the email template on Mobile.

### Display condition

You can set the condition to display the button

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2Fkju9criJBSSH4qHF3b6I%2Fimage.png?alt=media&amp;token=c681d116-01d1-4d7e-b8ca-9fb652bf0c40" alt=""><figcaption></figcaption></figure>

* ***Condition***: It includes ***None, Show when, Hidden when***
* ***Field***: It contains ***Business Object attributes***
* ***Index***: The number of the row in the ***Business Objects Data table***
* ***Operator***: It includes ***contains, does not contain, starts with, doesn't start with, ends with, doesn't end with***, etc.
* ***Value***: you can input the value or select an ***attribute from Business Object or Event***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.antsomi.com/cdp-365-user-guide-en/marketing-hub/email-template/settings/blocks-and-settings/button.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
