Sass function that calculates margin from letter.
textMargin($top_or_bot, $margin, $fontSize, $lineHeight)
eg.: margin-bottom: textMargin('bot', 20, 2.25, 1.5);
This returns margin in "em" unit.
| <?php | |
| $nid = 814; //id of node you want to load | |
| $node = node_load($nid); | |
| print render(node_view($node)); | |
| ?> |