Jenna's Portfolio

JavaScript VML Gradient Generator

Generate an Outlook-friendly VML and HTML gradient for your email.

Fallback color:


Gradient Angle Reference

0 on the bottom, 180 on top, 90 on the left, 270 on the right

Use the number to describe where color 1 comes from.

For example, if color 1 is blue, an angle of 135 would make blue come from the top left.


Input gradient info to get started.

Note that the preview box shows the colors and angle, but not width or padding.

Using Your Generated Gradient

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" lang="en-US" xml:lang="en-US">

Certain numbers, like the VML angle and the width of the inner table, have been calculated based on your input.


About This

This gradient generator features:

I license the code on this page under the MIT License. You may use the results of this code generator in commercial emails. Also, it's OK to make, edit, and use your own copy of this generator.