<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Midefunz on Medium]]></title>
        <description><![CDATA[Stories by Midefunz on Medium]]></description>
        <link>https://medium.com/@midefunz?source=rss-5fa348fb7144------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*j06yF0oOhs845VYDRYS8FQ.jpeg</url>
            <title>Stories by Midefunz on Medium</title>
            <link>https://medium.com/@midefunz?source=rss-5fa348fb7144------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 21:02:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@midefunz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Padding And Margin]]></title>
            <link>https://midefunz.medium.com/padding-and-margin-1d2f2aff5e1e?source=rss-5fa348fb7144------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d2f2aff5e1e</guid>
            <dc:creator><![CDATA[Midefunz]]></dc:creator>
            <pubDate>Wed, 15 Nov 2023 06:49:35 GMT</pubDate>
            <atom:updated>2023-11-15T06:49:35.460Z</atom:updated>
            <content:encoded><![CDATA[<p>As a UIUX designer or whatever you design, there are some things to be conscious of, speaking of padding and margin. I won’t take much of your time as you go through this guide to learn the difference between padding and margin, when to use them, and how to use them.</p><p><strong>What Is The Difference Between Padding And Margin?</strong></p><p>In design, padding is “the space between the content and the border of an element”. While margins refer to “the space between the content or elements and the edge of a layout or container”.<strong> </strong>It’s important to understand how different components, such as padding and margins, come together to separate text and elements. Doing so encourages you to create a design that looks clean and is easy to read.</p><figure><img alt="Simple illustration or margin and padding." src="https://cdn-images-1.medium.com/max/289/1*hGk2cAxf_FAEigYj_hdsKQ.png" /><figcaption>A simple illustration of padding and margin.</figcaption></figure><p><strong>What Is Padding?</strong></p><p>Padding is the space between the content and the border of an element. Padding is valuable in creating additional space inside an element and keeping it at a set distance from other aspects of a design. Using padding is extremely beneficial when you need to separate text boxes, CTA buttons and images while also keeping them aligned.</p><p>When you increase the size of your padding, you are increasing the size of the block within the border. Essentially, content size (like the amount of text and its font size) plus padding equals the total size of the button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*uGNg8Zt66cHvL0VDmghBPg.png" /><figcaption>Padding illustration.</figcaption></figure><p><strong>What is Margin?</strong></p><p>Margin is the space around the border of an element. The margin surrounding an element will inform the web browser being used of how much space should be left between independent elements and the external margin of the website’s page. Margins can also be used to keep different elements an equal distance apart.</p><p>Margins create a visual breathing room, establishing a clear separation between the content and the surrounding elements, or edges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*yXpuV2KEwyVcKSYZEWwEEA.png" /><figcaption>Margin illustration.</figcaption></figure><p>Before you begin building any type of app or website, it’s best to familiarize yourself with the differences and similarities between padding and margin to ensure you implement the proper settings for each and use them correctly.</p><p>Once you learn the difference between padding and margin, you can determine the best method of incorporating both into your own website’s layout and design.</p><p><strong>Keep the following differences between padding and margins in mind:</strong></p><ul><li>Padding represents the amount of inner space an element has, while the margin is the amount of whitespace available surrounding an element.</li><li>Margin and padding have similar special powers on your design pages, but they do very different things.</li><li>It’s not possible to use negative values when defining padding, but you can with margins.</li><li>It’s not possible to set padding to auto-padding. However, you can use automatic settings for margins.</li></ul><p><strong>When to use Padding and Margin.</strong></p><p>While margin and <strong>padding</strong> have similar special powers on your design pages, they do very different things.</p><p>As we mentioned above, <strong>padding</strong> will change the amount of space between your element’s border and the content within that border.</p><p>So, you want to use <strong>padding</strong> to give the text of your button some breathing room from the border. This makes for easier readability, but it also just looks better. It will also make your visible element larger.</p><p>You use <strong>margin</strong> to keep other elements from colliding with your visible element (remember, margin is transparent). To keep your button from crowding your subtitle text or vice versa, give one or both a bit of margin to drive them apart.</p><p>This creates more whitespace on your pages, helping to create a better user experience for your designs.</p><p>Sometimes, though, you may want an element to trespass upon another element’s space. That’s a <strong>negative margin</strong>. When you want a certain element to overlap with another, this is the moment that you’ll want to go negative with your margin.</p><p>To make this happen, you’ll want to apply the negative margin to the element you want to overlap. The succeeding element will then climb over that element.</p><p>It can create an artistic visual for parts of your store if used correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*FkF18sT_LhoQpXKtY6PWOQ.jpeg" /><figcaption>Margin and Padding explained.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d2f2aff5e1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>