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

# Why Does the Padding of an HTML Content Block Impact the Entire Template?

> Fix unintended global padding in MoEngage email templates by using inline CSS and avoiding duplicate body tags in custom HTML content blocks.

## Problem

The padding intended to be applied only to a specific HTML *Content block* is being added to the entire template instead.

<img alt="Untitled design (33).png" src="https://mintcdn.com/moengage/xGyg9rXr6djolSrt/images/moengage_dd1b32.png?fit=max&auto=format&n=xGyg9rXr6djolSrt&q=85&s=8e2debc9e1403b8bf4abfb981ba30b70" width="1920" height="903" data-path="images/moengage_dd1b32.png" />

## Solution

* Use content tags and text elements to add content to the body.
* Avoid adding duplicate `<html>` tags in *custom* *content blocks*.
* Adding global styles may cause unintended effects. For example, the styles applied also affect the editor's user interface (UI).
* If styling is required, use inline Cascading Style Sheets (CSS) to ensure it only affects the specific element.

<Info>
  It is recommended that the content be written in HTML code first, and then inline styling is applied to achieve the desired appearance.
</Info>
