<?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/"
xmlns:series="http://organizeseries.com/"
> <channel><title>Comments on: How to Create a Responsive Centered Image in CSS3</title> <atom:link href="http://www.sitepoint.com/css3-responsive-centered-image/feed/" rel="self" type="application/rss+xml" /><link>http://www.sitepoint.com/css3-responsive-centered-image/</link> <description>Learn CSS &#124; HTML5 &#124; JavaScript &#124; Wordpress &#124; Tutorials-Web Development &#124; Reference &#124; Books and More</description> <lastBuildDate>Tue, 14 May 2013 23:57:39 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <item><title>By: Craig Buckler</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1086314</link> <dc:creator>Craig Buckler</dc:creator> <pubDate>Thu, 09 May 2013 18:03:52 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1086314</guid> <description><![CDATA[Hi DWD. Do you mean a data-encoded image defined in HTML or CSS? If so, then yes - it should work.]]></description> <content:encoded><![CDATA[<p>Hi DWD. Do you mean a data-encoded image defined in HTML or CSS? If so, then yes &#8211; it should work.</p> ]]></content:encoded> </item> <item><title>By: Ben</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1086298</link> <dc:creator>Ben</dc:creator> <pubDate>Thu, 09 May 2013 16:05:46 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1086298</guid> <description><![CDATA[Nevermind, I see that it wouldn&#039;t work in this situation.  Doesn&#039;t help with vertical centering and not very useful in absolute positioning.]]></description> <content:encoded><![CDATA[<p>Nevermind, I see that it wouldn&#8217;t work in this situation.  Doesn&#8217;t help with vertical centering and not very useful in absolute positioning.</p> ]]></content:encoded> </item> <item><title>By: Ben</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1086295</link> <dc:creator>Ben</dc:creator> <pubDate>Thu, 09 May 2013 15:35:21 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1086295</guid> <description><![CDATA[What happened to
{
display: block;
margin: 0 auto;
}
for centering?]]></description> <content:encoded><![CDATA[<p>What happened to</p><p>{<br
/> display: block;<br
/> margin: 0 auto;<br
/> }</p><p>for centering?</p> ]]></content:encoded> </item> <item><title>By: Craig Buckler</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1085885</link> <dc:creator>Craig Buckler</dc:creator> <pubDate>Mon, 06 May 2013 09:03:28 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1085885</guid> <description><![CDATA[Hi Lee. I think I understand your point but, in practice, the browser should size the image correctly.
With regard to :empty, a search and replace may be enough if you&#039;ve not used it for other selectors. That said, why remove it? Even if you&#039;re dropping further IE8 development, it doesn&#039;t follow that you must rip out all IE8-specific code you previously wrote. You&#039;d only be saving a few bytes and the browser is likely to stick around for many, many years.]]></description> <content:encoded><![CDATA[<p>Hi Lee. I think I understand your point but, in practice, the browser should size the image correctly.</p><p>With regard to :empty, a search and replace may be enough if you&#8217;ve not used it for other selectors. That said, why remove it? Even if you&#8217;re dropping further IE8 development, it doesn&#8217;t follow that you must rip out all IE8-specific code you previously wrote. You&#8217;d only be saving a few bytes and the browser is likely to stick around for many, many years.</p> ]]></content:encoded> </item> <item><title>By: Lee</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1085814</link> <dc:creator>Lee</dc:creator> <pubDate>Sun, 05 May 2013 04:40:17 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1085814</guid> <description><![CDATA[Isn&#039;t it safer to use both max-height and max-width regardless of orientation? If you have a really wide panorama on a landscape device, it may not be enough to constrain by height. The image will remain proportional if both are in place, right?
I think the :empty trick is clever. However, if you decide to stop supporting IE8, it will much harder to pull the plug because the code is mixed throughout your file. You may be serving those extra characters to modern browsers for a while before you get a chance to refactor everything.]]></description> <content:encoded><![CDATA[<p>Isn&#8217;t it safer to use both max-height and max-width regardless of orientation? If you have a really wide panorama on a landscape device, it may not be enough to constrain by height. The image will remain proportional if both are in place, right?</p><p>I think the :empty trick is clever. However, if you decide to stop supporting IE8, it will much harder to pull the plug because the code is mixed throughout your file. You may be serving those extra characters to modern browsers for a while before you get a chance to refactor everything.</p> ]]></content:encoded> </item> <item><title>By: Reilly</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1085410</link> <dc:creator>Reilly</dc:creator> <pubDate>Thu, 02 May 2013 03:18:50 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1085410</guid> <description><![CDATA[This one works perfect, this is the way to go!]]></description> <content:encoded><![CDATA[<p>This one works perfect, this is the way to go!</p> ]]></content:encoded> </item> <item><title>By: DWD</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1083935</link> <dc:creator>DWD</dc:creator> <pubDate>Sat, 27 Apr 2013 14:35:57 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1083935</guid> <description><![CDATA[Hi Craig, Do you know how it would work with a img string styled image or if it would even work at all? Thanks for your time and expertise.]]></description> <content:encoded><![CDATA[<p>Hi Craig, Do you know how it would work with a img string styled image or if it would even work at all? Thanks for your time and expertise.</p> ]]></content:encoded> </item> <item><title>By: Craig Buckler</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1083788</link> <dc:creator>Craig Buckler</dc:creator> <pubDate>Fri, 26 Apr 2013 14:24:04 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1083788</guid> <description><![CDATA[Try the demo outside of the code editor...
http://cssdeck.com/labs/full/responsive-image]]></description> <content:encoded><![CDATA[<p>Try the demo outside of the code editor&#8230;<br
/> <a
href="http://cssdeck.com/labs/full/responsive-image" rel="nofollow">http://cssdeck.com/labs/full/responsive-image</a></p> ]]></content:encoded> </item> <item><title>By: Craig Buckler</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1083787</link> <dc:creator>Craig Buckler</dc:creator> <pubDate>Fri, 26 Apr 2013 14:22:31 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1083787</guid> <description><![CDATA[Ahh, but you need a space between :root and the other selector so there&#039;s no saving! It&#039;s another good option though, thanks.]]></description> <content:encoded><![CDATA[<p>Ahh, but you need a space between :root and the other selector so there&#8217;s no saving! It&#8217;s another good option though, thanks.</p> ]]></content:encoded> </item> <item><title>By: Craig Buckler</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1083786</link> <dc:creator>Craig Buckler</dc:creator> <pubDate>Fri, 26 Apr 2013 14:20:54 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1083786</guid> <description><![CDATA[Hi DWD. Only images with class=&quot;ri&quot; in the tag should be affected. Remove that class from an image and the problem should disappear.]]></description> <content:encoded><![CDATA[<p>Hi DWD. Only images with class=&#8221;ri&#8221; in the tag should be affected. Remove that class from an image and the problem should disappear.</p> ]]></content:encoded> </item> <item><title>By: DWD</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1083780</link> <dc:creator>DWD</dc:creator> <pubDate>Fri, 26 Apr 2013 12:27:18 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1083780</guid> <description><![CDATA[I&#039;m a newbie, so please bear with me. When I put in the code it moves all of my images of place...
Do I have to style the position of each image in the img html string to get this to work correctly?
Thanks in advance for any help.]]></description> <content:encoded><![CDATA[<p>I&#8217;m a newbie, so please bear with me. When I put in the code it moves all of my images of place&#8230;<br
/> Do I have to style the position of each image in the img html string to get this to work correctly?<br
/> Thanks in advance for any help.</p> ]]></content:encoded> </item> <item><title>By: Larry Botha</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1083757</link> <dc:creator>Larry Botha</dc:creator> <pubDate>Fri, 26 Apr 2013 08:02:07 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1083757</guid> <description><![CDATA[Didn&#039;t know about :empty, but I use
:root .class {}
to target IE9+. You can crunch off 1 additional character :P
Nice technique! Interesting alternative to using display: table;
http://www.hughlashbrooke.com/two-methods-for-vertical-centering-in-css/]]></description> <content:encoded><![CDATA[<p>Didn&#8217;t know about :empty, but I use</p><p>:root .class {}</p><p>to target IE9+. You can crunch off 1 additional character :P</p><p>Nice technique! Interesting alternative to using display: table;</p><p><a
href="http://www.hughlashbrooke.com/two-methods-for-vertical-centering-in-css/" rel="nofollow">http://www.hughlashbrooke.com/two-methods-for-vertical-centering-in-css/</a></p> ]]></content:encoded> </item> <item><title>By: Peeter Jozaf</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1083750</link> <dc:creator>Peeter Jozaf</dc:creator> <pubDate>Fri, 26 Apr 2013 06:34:53 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1083750</guid> <description><![CDATA[Hello,
Thanks for sharing excellent post. I am new in this filed and now i got it.]]></description> <content:encoded><![CDATA[<p>Hello,<br
/> Thanks for sharing excellent post. I am new in this filed and now i got it.</p> ]]></content:encoded> </item> <item><title>By: Michael G</title><link>http://www.sitepoint.com/css3-responsive-centered-image/#comment-1083684</link> <dc:creator>Michael G</dc:creator> <pubDate>Thu, 25 Apr 2013 20:22:58 +0000</pubDate> <guid
isPermaLink="false">http://www.sitepoint.com/?p=65391#comment-1083684</guid> <description><![CDATA[The demos above displayed fine for me in Chrome but neither displayed at all for me in IE9.0.8xxx. Both look terrific in IE10.]]></description> <content:encoded><![CDATA[<p>The demos above displayed fine for me in Chrome but neither displayed at all for me in IE9.0.8xxx. Both look terrific in IE10.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 35/44 queries in 0.032 seconds using memcached
Object Caching 586/590 objects using memcached

Served from: www.sitepoint.com @ 2013-05-14 17:42:50 --