Skip to content

m-wrap

Sets block width, background, border, and other properties

Attributes

AttributeDefault ValueDescription
width100%Block width in px or %
heightBlock height in px
outlook-widthSpecial block width for Outlook (used in widescreen emails)
aligncenterHorizontal alignment: left / right / center
valigntopVertical alignment: top / bottom / middle
paddingPadding. Can be set using 1-4 values in px following standard CSS rules
bgcolorBackground color
borderBorder properties, e.g., #cccccc 2px solid
border-topTop border properties, e.g., #cccccc 2px solid
border-rightRight border properties, e.g., #cccccc 2px solid
border-bottomBottom border properties, e.g., #cccccc 2px solid
border-leftLeft border properties, e.g., #cccccc 2px solid
border-radius0Border radius
box-shadowShadow around the element
background-imageBackground image
outlook-background-imageSpecial background image for Outlook and Lotus (used in widescreen emails)
background-positionBackground image position (ignored by Outlook and Lotus)

Example

html
<m-wrap width="600px" bgcolor="#ccffff" align="center">
    ...
</m-wrap>
html
<m-wrap width="1000px" outlook-width="700px" background-image="img/bg.png" outlook-background-image="img/bg_out.png">
    ...
</m-wrap>