<?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>img tag Archives &#8212; Stampede: the strategic design &amp; technology company</title>
	<atom:link href="https://stampede-design.com/blog/tag/img-tag/feed/" rel="self" type="application/rss+xml" />
	<link>https://stampede-design.com/blog/tag/img-tag/</link>
	<description>We are creating better worlds though thoughtful design and technology. Connect with us!</description>
	<lastBuildDate>Tue, 07 Apr 2026 09:06:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>https://stampede-design.com/wp-content/uploads/2024/02/cropped-Stampede-Favicon-old-32x32.png</url>
	<title>img tag Archives &#8212; Stampede: the strategic design &amp; technology company</title>
	<link>https://stampede-design.com/blog/tag/img-tag/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Get Rid of Unwanted Space Below </title>
		<link>https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/</link>
					<comments>https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/#respond</comments>
		
		<dc:creator><![CDATA[Syazwan Hakim]]></dc:creator>
		<pubDate>Tue, 29 May 2012 20:08:19 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[front-end development]]></category>
		<category><![CDATA[img tag]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=2169</guid>

					<description><![CDATA[<p>Got an unexplained and unwanted space below &#60;img&#62;? Fret not - Syazwan is back to share a handy tip.</p>
<p>The post <a href="https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/">Get Rid of Unwanted Space Below &lt;img&gt;</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="full"><img decoding="async" src="https://stampede-design.com/wp-content/uploads/2012/05/get-rid-of.jpg" alt="" title="get-rid-of" width="480" height="" /><p class="capt_block">Unwanted space below &lt;img&gt;</p></div>
<p class="lead">Image above shows the correct styling (Left Side) and unwanted space below &lt;img&gt; (RightSide).</p>
<h2>HTML Code</h2>
<pre class="brush: php; title: ; notranslate">
&lt;a class=&quot;link&quot; href=&quot;#&quot;&gt;
    &lt;img src=&quot;your image path&quot; alt=&quot;Image&quot; /&gt;
&lt;/a&gt;
</pre>
<h2>Style</h2>
<pre class="brush: php; title: ; notranslate">
.link {
border:1px solid red
}
</pre>
<h2>Why Does It Happen?</h2>
<p>Well, for my case, &#8220;line-height&#8221; property is the culprit. I often assign &#8220;line-height:normal;&#8221; to &lt;body&gt; so, I&#8217;ll never miss any line-height. However, it will also cause the unwanted empty space below &lt;img&gt;</p>
<h2>How to fix it?</h2>
<p>Change &#8220;line-height&#8221; value to 0 for &lt;a&gt; tag.</p>
<pre class="brush: php; title: ; notranslate">
.link {
border:1px solid red;
line-height:0
}
</pre>
<p>The post <a href="https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/">Get Rid of Unwanted Space Below &lt;img&gt;</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
