<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How To Resize Images With CSS – Keeping Aspect Ratio As It Is: Quick &amp; Easy</title>
	<atom:link href="http://blog.sachinkraj.com/how-to-resize-images-with-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/</link>
	<description>Web Development Tutorials, How-To&#039;s and Design Tips</description>
	<lastBuildDate>Tue, 07 Feb 2012 12:12:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Enrico</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-6839</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Fri, 06 Jan 2012 17:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-6839</guid>
		<description>It works great but not perfect.
1. If your image has no width and height specified then as pdfmania just said you need to declare just one size on your CSS and the other size will adjust automatically.

2. If your image has width and height properties specified then your code works good and does the job.

3. but if your image has width or height specified using style attribute then it doesn&#039;t work cause inline style (or even internal stylesheets if you are using it on an external one) have higher priority</description>
		<content:encoded><![CDATA[<p>It works great but not perfect.<br />
1. If your image has no width and height specified then as pdfmania just said you need to declare just one size on your CSS and the other size will adjust automatically.</p>
<p>2. If your image has width and height properties specified then your code works good and does the job.</p>
<p>3. but if your image has width or height specified using style attribute then it doesn&#8217;t work cause inline style (or even internal stylesheets if you are using it on an external one) have higher priority</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artyom</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-6835</link>
		<dc:creator>Artyom</dc:creator>
		<pubDate>Fri, 06 Jan 2012 07:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-6835</guid>
		<description>Thanks! I&#039;ve modified a bit to resize only big images:

.post img {
max-width: 730px;
width: expression(this.width &gt; 730 ? 730: true);
height: auto;
}</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ve modified a bit to resize only big images:</p>
<p>.post img {<br />
max-width: 730px;<br />
width: expression(this.width &gt; 730 ? 730: true);<br />
height: auto;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdfmania</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-4267</link>
		<dc:creator>pdfmania</dc:creator>
		<pubDate>Sat, 17 Sep 2011 06:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-4267</guid>
		<description>i just put code  
.divclass img{width:50%} 
don&#039;t think need the height , it will adjust automatically, save a little file size. </description>
		<content:encoded><![CDATA[<p>i just put code<br />
.divclass img{width:50%}<br />
don&#039;t think need the height , it will adjust automatically, save a little file size.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gonzalo</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-4239</link>
		<dc:creator>Gonzalo</dc:creator>
		<pubDate>Fri, 19 Aug 2011 15:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-4239</guid>
		<description>this code worked perfectly for me 
 
.imgitem { 
width: auto; 
height: auto; 
max-width: 65px; 
max-height: 65px; 
} 
 
and it resizes keeping any ratio that the image has </description>
		<content:encoded><![CDATA[<p>this code worked perfectly for me </p>
<p>.imgitem {<br />
width: auto;<br />
height: auto;<br />
max-width: 65px;<br />
max-height: 65px;<br />
} </p>
<p>and it resizes keeping any ratio that the image has</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack Isidore</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-4218</link>
		<dc:creator>Jack Isidore</dc:creator>
		<pubDate>Sat, 06 Aug 2011 07:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-4218</guid>
		<description>wonderful, thanks thanks thank thank... </description>
		<content:encoded><![CDATA[<p>wonderful, thanks thanks thank thank&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: best car collection</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-4208</link>
		<dc:creator>best car collection</dc:creator>
		<pubDate>Thu, 28 Jul 2011 20:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-4208</guid>
		<description>Thanks you... :D </description>
		<content:encoded><![CDATA[<p>Thanks you&#8230; <img src='http://blog.sachinkraj.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sakins</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-4168</link>
		<dc:creator>sakins</dc:creator>
		<pubDate>Thu, 30 Jun 2011 15:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-4168</guid>
		<description>perfect! </description>
		<content:encoded><![CDATA[<p>perfect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ausfahrt</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-4133</link>
		<dc:creator>ausfahrt</dc:creator>
		<pubDate>Mon, 13 Jun 2011 04:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-4133</guid>
		<description>I have a different question, this may or may not be possible. Let&#039;s make this simple and say I have a viewing area of 1000x1000. All of my images are 300x400 or 400x300. I always want the longer edge (even though it is not that size) be 1000px, or 100%. Now my issue is that, I could change for some and for others, but I have a javascript that is switching the image from one to another. So I want it to be able to always have css make the longer edge 100% while keeping the aspect ration. Is it possible? </description>
		<content:encoded><![CDATA[<p>I have a different question, this may or may not be possible. Let&#039;s make this simple and say I have a viewing area of 1000&#215;1000. All of my images are 300&#215;400 or 400&#215;300. I always want the longer edge (even though it is not that size) be 1000px, or 100%. Now my issue is that, I could change for some and for others, but I have a javascript that is switching the image from one to another. So I want it to be able to always have css make the longer edge 100% while keeping the aspect ration. Is it possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-4115</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 02 Jun 2011 08:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-4115</guid>
		<description>sorry, it works:) </description>
		<content:encoded><![CDATA[<p>sorry, it works:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blog.sachinkraj.com/how-to-resize-images-with-css/#comment-4114</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 02 Jun 2011 08:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sachinkraj.com/?p=1221#comment-4114</guid>
		<description>only work IE7-, not work for FF/Safari/IE8+ </description>
		<content:encoded><![CDATA[<p>only work IE7-, not work for FF/Safari/IE8+</p>
]]></content:encoded>
	</item>
</channel>
</rss>

