Skip to content

Instantly share code, notes, and snippets.

View n0r8-ecomarkup's full-sized avatar

Misha Krit n0r8-ecomarkup

  • htmlexperts.ru
  • Ukraine
View GitHub Profile
compass compile --force
sed -i -e "s/^@charset.*$//g" public/stylesheets/*.css
jammit --force
@n0r8-ecomarkup
n0r8-ecomarkup / Email <body>
Last active December 14, 2015 22:58 — forked from dragstarcrowant/EDM <body>
Some rules for creating cross-client email template.
<body style="margin:0; padding:0; background:#ffffff;">
<!-- <table> always with fixed width -->
<!-- in case having problems with different <td> width, <table> "table-layout" must be changed to "fixed", this will "lock" column width and content won't break layout -->
<table style="width:600px; margin:0 auto; border-collapse:collapse; border-spacing: 0; border:none; " cellspacing="0" cellpadding="0" border="0">
<tr style="border-spacing:0; padding:0; margin:0; border:0;">
<!-- <td> must have at least one set dimension: <td style="width:..px;" width=".."> or <td style="height:..px;" height=".."> -->
<!-- <td> can be used like placeholder or spacer(instead of paddings or margins)
<td colspan="" style="border:0; background:#5e9525; text-align:center; margin:0; width:19px; vertical-align: top; padding:0; border:none; height:50px;" width="19" height="50">