<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Martin Hofmann</title>
    <description>The latest articles on DEV Community by Martin Hofmann (@martskin).</description>
    <link>https://dev.to/martskin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F260698%2Feab8a0d7-ec06-4727-9400-8be52d20ba3c.jpeg</url>
      <title>DEV Community: Martin Hofmann</title>
      <link>https://dev.to/martskin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/martskin"/>
    <language>en</language>
    <item>
      <title>CSS Box-model Visualizer</title>
      <dc:creator>Martin Hofmann</dc:creator>
      <pubDate>Tue, 29 Oct 2019 17:45:05 +0000</pubDate>
      <link>https://dev.to/martskin/css-box-model-visualizer-37ji</link>
      <guid>https://dev.to/martskin/css-box-model-visualizer-37ji</guid>
      <description>&lt;p&gt;Have you ever attempted to explain the CSS box-model or convey the padding and margin of a component using ASCII?&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

border
 _____________
|   padding   |
| ___________ |
| |         | |
| | element | |
| |         | |
| ___________ |
|   margin    |
|_____________|


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Recently after a slack chat with a colleague I decided to build an online tool to help with the visualization!&lt;/p&gt;

&lt;h2&gt;
  
  
  Introducing the CSS Box-model Visualizer!
&lt;/h2&gt;

&lt;p&gt;A quick, easy tool to visualize and share CSS box-model examples. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adjust the inputs in the control panel to customize margin, padding, border, element dimensions and colors.&lt;/li&gt;
&lt;li&gt;Click the "Copy Link" button to get a sharable URL.&lt;/li&gt;
&lt;li&gt;Click the "Download PNG" button to generate an image.&lt;/li&gt;
&lt;li&gt;Click the "Copy CSS" button as a starting point for your component.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://box-model-visualizer.netlify.com" rel="noopener noreferrer"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyxn2k8c983elrtmkppiy.gif" alt="Box-Model card example animation"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://box-model-visualizer.netlify.com" rel="noopener noreferrer"&gt;https://box-model-visualizer.netlify.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's still a work in progress so please let me know if you find it useful or have any suggestions to help improve it!&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>react</category>
      <category>design</category>
    </item>
  </channel>
</rss>
