m-wrap
Sets block width, background, border, and other properties
Attributes
Attribute | Default Value | Description |
---|---|---|
width | 100% | Block width in px or % |
height | Block height in px | |
outlook-width | Special block width for Outlook (used in widescreen emails) | |
align | center | Horizontal alignment: left / right / center |
valign | top | Vertical alignment: top / bottom / middle |
padding | Padding. Can be set using 1-4 values in px following standard CSS rules | |
bgcolor | Background color | |
border | Border properties, e.g., #cccccc 2px solid | |
border-top | Top border properties, e.g., #cccccc 2px solid | |
border-right | Right border properties, e.g., #cccccc 2px solid | |
border-bottom | Bottom border properties, e.g., #cccccc 2px solid | |
border-left | Left border properties, e.g., #cccccc 2px solid | |
border-radius | 0 | Border radius |
box-shadow | Shadow around the element | |
background-image | Background image | |
outlook-background-image | Special background image for Outlook and Lotus (used in widescreen emails) | |
background-position | Background 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>