MartinSStewart/send-grid/3.0.2

NOTE: the latest version is 4.1.4

Email.Html.Attributes

Only html attributes that are supported by all major email clients are listed here. If you need something not that's included (and potentially not universally supported) use attribute or style.

These sources were used to determine what should be included: https://www.campaignmonitor.com/css/color-background/background/ https://www.pinpointe.com/blog/email-campaign-html-and-css-support https://www.caniemail.com/

Open an issue on github if something is missing or incorrectly included.

Attributes and styles

alt : String -> Attribute
attribute : String -> String -> Attribute

Use this if there's a attribute you want to add that isn't present in this module. Note that there's a risk that it isn't supported by some email clients.

backgroundColor : String -> Attribute
border : String -> Attribute
borderBottom : String -> Attribute
borderBottomColor : String -> Attribute
borderBottomStyle : String -> Attribute
borderBottomWidth : String -> Attribute
borderColor : String -> Attribute
borderLeft : String -> Attribute
borderLeftColor : String -> Attribute
borderLeftStyle : String -> Attribute
borderLeftWidth : String -> Attribute
borderRadius : String -> Attribute
borderRight : String -> Attribute
borderRightColor : String -> Attribute
borderRightStyle : String -> Attribute
borderRightWidth : String -> Attribute
borderStyle : String -> Attribute
borderTop : String -> Attribute
borderTopColor : String -> Attribute
borderWidth : String -> Attribute
color : String -> Attribute
fontFamily : String -> Attribute
fontSize : String -> Attribute
fontStyle : String -> Attribute
fontVariant : String -> Attribute
height : String -> Attribute
href : String -> Attribute
letterSpacing : String -> Attribute
lineHeight : String -> Attribute
padding : String -> Attribute
paddingBottom : String -> Attribute
paddingLeft : String -> Attribute
paddingRight : String -> Attribute
paddingTop : String -> Attribute
src : String -> Attribute
style : String -> String -> Attribute

Use this if there's a style you want to add that isn't present in this module. Note that there's a risk that it isn't supported by some email clients.

textAlign : String -> Attribute
verticalAlign : String -> Attribute
width : String -> Attribute