<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 10:54:11 +0000</lastBuildDate>
    <item>
      <title>(Other) Calculate % from pixels (snippet pipe) - charlesroper</title>
      <link>https://snipplr.com/view/8617/calculate--from-pixels-snippet-pipe</link>
      <description>&lt;p&gt;A snippet pipe that will calculate % based on a given pixel value and base unit. &#13;
&#13;
E.g. If you want a 10px font-size expressed as a percentage, you would need to perform the following calculation (note 16px is the default base font size in all browsers):&#13;
&#13;
    10px / 16px = 0.625em * 100 = 62.5%&#13;
&#13;
This snippet allows you to specify the desired pixel size and the base font size and will return the calculated % value.&lt;/p&gt;</description>
      <pubDate>Fri, 26 Sep 2008 07:41:11 UTC</pubDate>
      <guid>https://snipplr.com/view/8617/calculate--from-pixels-snippet-pipe</guid>
    </item>
    <item>
      <title>(Other) Calculate em from pixels (snippet pipe) - charlesroper</title>
      <link>https://snipplr.com/view/8616/calculate-em-from-pixels-snippet-pipe</link>
      <description>&lt;p&gt;*This snippet was originally inspired by [sotetbarna](http://e-texteditor.com/forum/viewtopic.php?p=11786#11786)*&#13;
&#13;
A snippet pipe that will calculate ems based on a given pixel value and base unit. &#13;
&#13;
E.g. If you want a 10px font-size expressed in ems, you would need to perform the following calculation (note 16px is the default base font size in all browsers):&#13;
&#13;
    10px / 16px = 0.625em&#13;
&#13;
This snippet allows you to specify the desired pixel size and the base font size and will return the calculated em value.&lt;/p&gt;</description>
      <pubDate>Fri, 26 Sep 2008 07:37:05 UTC</pubDate>
      <guid>https://snipplr.com/view/8616/calculate-em-from-pixels-snippet-pipe</guid>
    </item>
  </channel>
</rss>
