<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>margin Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/margin/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/margin/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to use Margin Property in CSS?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-margin-property-in-css/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-margin-property-in-css/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 03 Aug 2021 12:35:55 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[bottom]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[left]]></category>
		<category><![CDATA[margin]]></category>
		<category><![CDATA[property]]></category>
		<category><![CDATA[Right]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7325</guid>

					<description><![CDATA[<p>margin&#8211; Its shorthand margin property It declares all margin properties in one single line. We can set this property to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-margin-property-in-css/">How to use Margin Property in CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>margin</strong>&#8211;</h2>



<p class="wp-block-paragraph">Its shorthand margin property It declares all margin properties in one single line. We can set this property to auto or length in the form of %, cm, px etc. It is by default set 0px.</p>



<p class="wp-block-paragraph">When we set auto value browser decide the margin. </p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<p class="wp-block-paragraph"><strong>img { margin: 10px 20px 30px 40px;}</strong></p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="803" height="682" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-8.png" alt="" class="wp-image-7327" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-8.png 803w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-8-300x255.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-8-768x652.png 768w" sizes="(max-width: 803px) 100vw, 803px" /></figure>



<h2 class="wp-block-heading"><strong>Margin Property</strong></h2>



<p class="wp-block-paragraph">This property is used to set the margin of specified element.</p>



<ul class="wp-block-list"><li>margin-left</li><li>margin-right</li><li>margin-top</li><li>margin-bottom</li><li>margin</li></ul>



<h3 class="wp-block-heading"><strong>margin-left</strong>&#8211;</h3>



<p class="wp-block-paragraph">This property is used to set left margin of element. We can set this property to auto or length in the form of %, cm, px etc. It is by default set 0px.</p>



<p class="wp-block-paragraph">When we set auto value browser decide the margin. </p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<p class="wp-block-paragraph"><strong>img { margin-left: 20%; }<br>h1 { margin-left: 40px; }<br>p { margin-left: auto; }</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://server2client.com/images/boxmodeldiagramleftmargin.webp" alt=""/></figure>



<h3 class="wp-block-heading"><strong>margin-right</strong>&#8211;</h3>



<p class="wp-block-paragraph">This property is used to set right margin of element. We can set this property to auto or length in the form of %, cm, px etc. It is by default set 0px.</p>



<p class="wp-block-paragraph">When we set auto value browser decide the margin. </p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<p class="wp-block-paragraph"><strong>img { margin-right: 20%; }<br>h1 { margin-right: 40px; }<br>p { margin-right: auto; }</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://server2client.com/images/boxmodeldiagramrightmargin.webp" alt=""/></figure>



<h3 class="wp-block-heading"><strong>margin-top</strong>&#8211;</h3>



<p class="wp-block-paragraph">This property is used to set top margin of element. We can set this property to auto or length in the form of %, cm, px etc. It is by default set 0px.</p>



<p class="wp-block-paragraph">When we set auto value browser decide the margin. </p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<p class="wp-block-paragraph"><strong>img { margin-top: 20%; }<br>h1 { margin-top: 40px; }<br>p { margin-top: auto; }</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://server2client.com/images/boxmodeldiagramtopmargin.webp" alt=""/></figure>



<h3 class="wp-block-heading"><strong>margin-bottom</strong>&#8211;</h3>



<p class="wp-block-paragraph">This property is used to set bottom margin of element. We can set this property to auto or length in the form of %, cm, px etc. It is by default set 0px.</p>



<p class="wp-block-paragraph">When we set auto value browser decide the margin. </p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<p class="wp-block-paragraph"><strong>img { margin-bottom: 20%; }<br>h1 { margin-bottom: 40px; }<br>p { margin-bottom: auto; }</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://server2client.com/images/boxmodeldiagrambottommargin.webp" alt=""/></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-margin-property-in-css/">How to use Margin Property in CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-use-margin-property-in-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
