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
@n0r8-ecomarkup
n0r8-ecomarkup / English
Last active December 15, 2015 12:39
fonts stack
font-family: "Arial Black", Gadget, "Nimbus Sans L", sans-serif;
font-family: Arial, "Nimbus Sans L", Helvetica, sans-serif;
font-family: "Comic Sans MS", Monaco, TSCu_Comic cursive;
font-family: "Courier New", "Nimbus Mono L", Courier, monospace;
font-family: Georgia, "Century Schoolbook L", Serif;
font-family: Impact, Charcoal, Rekha, sans-serif;
font-family: "Lucida Console", Monaco, monospace;
font-family: "Lucida Sans Unicode", "Lucida Grande", Garuda, sans-serif;
font-family: Tahoma, Geneva, Kalimati, sans-serif;
font-family: "Palatino Linotype", Garuda, Palatino, sans-serif;
<snippet>
<content><![CDATA[
<table style="width:${1:600}px; margin:0 auto; border-collapse:collapse; border-spacing: 0; border:none; " cellspacing="0" cellpadding="0" border="0">
${2}
</table>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>edmtable</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<snippet>
<content><![CDATA[
<tr style="border-spacing:0; padding:0; margin:0; border:0;">
<td colspan="${1}" style="border:0; background:#${2:fff}; text-align:center; margin:0; width:${3:100}px; height:${4:100}px; vertical-align: top; padding:0;" width="${3:100}" height="${4:100}">
</td>
</tr>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>edmrow</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@dragstarcrowant
dragstarcrowant / EDM <body>
Last active December 14, 2015 21:19
GUIDE: edm
<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">
@BoringCode
BoringCode / dabblet.css
Created January 4, 2012 16:16 — forked from LeaVerou/dabblet.css
Lined paper that follows the text (by Lea Verou)
/**
* Lined paper that follows the text (by Lea Verou)
* This was just so awesome I had to fork it.
*/
/* Just decorative */
padding: 20px;
/* The font. Try changing font-size and see how the lines
@adamesque
adamesque / preloader.js
Created February 16, 2011 23:38
Uses jQuery's new Deferred object to help with image loading
/**
* Helper function for passing arrays of promises to $.when
*/
jQuery.whenArray = function ( array ) {
return jQuery.when.apply( this, array );
};
/**
* Accepts a single image src or an array of image srcs.
@scottwb
scottwb / jammit.sh
Created January 26, 2011 23:51
Hack to remove @charset directives from Compass-generated CSS so it will work with Jammit in Safari.
compass compile --force
sed -i -e "s/^@charset.*$//g" public/stylesheets/*.css
jammit --force