---
title: "Divider Block (Email Editor v3)"
description: "A Template reference of how the template is structured. This a useful information for building a custom block or editing templates in code."
url: https://docs.topol.io/email-editor/v3/template-reference/blocks/divider.html
---

# Topol Divider block

> **You are reading the Email Editor v3 docs**
>
> Email Editor v4 is the current version. See [this page in the v4 docs](https://docs.topol.io/email-editor/template-reference/blocks/divider.html), or [how to upgrade to v4](https://docs.topol.io/email-editor/guide/v4-migration.html).

**The divider block renders an `mj-divider`**: a horizontal rule whose color, style, and width are set through its border attributes.

```ts
interface TopolDividerBlock extends TopolBlock {
  tagName: "mj-divider";
  attributes: {
    "border-color": string;
    "border-style": string;
    "border-width": string;
    "padding-top": string;
    "padding-right": string;
    containerWidth: number;
    padding: string;
    "container-background-color"?: string;
    "css-class"?: "hide_on_mobile" | "hide_on_desktop";
    "padding-bottom"?: string | number | null;
    "padding-left"?: string | number | null;
  };
}
```
