How to add a gradient to a background area

Learn how to add a gradient to a background area in your Modern Editor design.


Topics covered in this article:

Email client support for gradients

Adding a gradient to a background area (Modern Editor)



Email client support for gradients


It may seem counter-intuitive, but an HTML color gradient is actually considered a background image. Since some email clients—including Outlook 2007/13/17 PC and—do not support background images, you'll need to set a solid color as a backup. The code included below will work well in most email clients, while falling back to a solid color in others.



Adding a gradient to a background area (Modern Editor)


We'll cover how to add gradients by pasting one line of code into the Modern Editor Styles UI. 

1. Open your document in Modern Editor.


2. Click on the block where you want to add the gradient, and go to the Container section:


3. If the gradient needs to be added across the document, go to the Stylesheet tab instead:


4. Select a color in the "Background Color" field

This is the color that will display if gradients are not supported.


5. Scroll down and expand the "Background image (Advanced)" section


6. Click the rainbow-colored icon to open the gradient builder tool


7. Click in the "Start Color" and "End Color" fields to choose the colors of your gradient


8. Drag the degree slider to adjust the angle of the gradient


9. Click "I'm done" when you are happy with your selections. This will apply the gradient to your design.



10. Leave Background Repeat set to `Repeat` and Background Position set to `0% 0%`


If you need to make adjustments to the colors, click the rainbow-colored icon again.




Have more questions? Submit a request
Powered by Zendesk