<?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: Reusable Transparent CSS Rounded Corners</title>
	<atom:link href="http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/feed/" rel="self" type="application/rss+xml" />
	<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/</link>
	<description>Web Design &#38; SharePoint Branding</description>
	<lastBuildDate>Wed, 16 May 2012 16:07:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: moonkat</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-2592</link>
		<dc:creator>moonkat</dc:creator>
		<pubDate>Tue, 12 Jul 2011 15:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-2592</guid>
		<description>Realized when implementing this, for the corners to render properly in Internet Explorer 6:

1. &quot;.box,&quot; or whatever the containing element is, HAS to have height and width. Otherwise IE6 doesn&#039;t recognize the relative positioning on the containing element, and the corners go all over the place.
2. &quot;.corner&quot; has to have &quot;font-size: 0; line-height: 0;.&quot; IE6 puts extra spacing in the corners so that more of the background circle sprite shows than should.</description>
		<content:encoded><![CDATA[<p>Realized when implementing this, for the corners to render properly in Internet Explorer 6:</p>
<p>1. &#8220;.box,&#8221; or whatever the containing element is, HAS to have height and width. Otherwise IE6 doesn&#8217;t recognize the relative positioning on the containing element, and the corners go all over the place.<br />
2. &#8220;.corner&#8221; has to have &#8220;font-size: 0; line-height: 0;.&#8221; IE6 puts extra spacing in the corners so that more of the background circle sprite shows than should.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moonkat</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-2583</link>
		<dc:creator>moonkat</dc:creator>
		<pubDate>Fri, 08 Jul 2011 22:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-2583</guid>
		<description>Put a border on your &quot;cutout&quot; circle, adjust the corner div positionings a bit, put a matching border on your box div, and voilà! You have a rounded corner box with a border!

Out of all the solutions I&#039;ve examined, although this still requires at least one image and 4 extra divs, it&#039;s STILL the most elegant solution I&#039;ve found! The image solutions are rigid, because I need to be able to change the color of a box according to client branding at the drop of a hat; the javascript ones are inelegant because of the tons of messy markup they generate.

Thanks for this!</description>
		<content:encoded><![CDATA[<p>Put a border on your &#8220;cutout&#8221; circle, adjust the corner div positionings a bit, put a matching border on your box div, and voilà! You have a rounded corner box with a border!</p>
<p>Out of all the solutions I&#8217;ve examined, although this still requires at least one image and 4 extra divs, it&#8217;s STILL the most elegant solution I&#8217;ve found! The image solutions are rigid, because I need to be able to change the color of a box according to client branding at the drop of a hat; the javascript ones are inelegant because of the tons of messy markup they generate.</p>
<p>Thanks for this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicola Giosmin</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-1811</link>
		<dc:creator>Nicola Giosmin</dc:creator>
		<pubDate>Sun, 27 Mar 2011 11:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-1811</guid>
		<description>Excellent tutorial! Many thanks.</description>
		<content:encoded><![CDATA[<p>Excellent tutorial! Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RobD</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-435</link>
		<dc:creator>RobD</dc:creator>
		<pubDate>Fri, 03 Dec 2010 13:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-435</guid>
		<description>Kyle, thanks... I see in your CSS where you&#039;re doing that now and that makes perfect sense
 width: 10px;
 height: 10px;

Those two lines on the background image tag are clipping it in a 10x10 pixel.  Since you&#039;re using positioning to place the image, it&#039;s only showing the 10x10 section you want.

Very nice, and very elegant!  Thanks for the explanation :)</description>
		<content:encoded><![CDATA[<p>Kyle, thanks&#8230; I see in your CSS where you&#8217;re doing that now and that makes perfect sense<br />
 width: 10px;<br />
 height: 10px;</p>
<p>Those two lines on the background image tag are clipping it in a 10&#215;10 pixel.  Since you&#8217;re using positioning to place the image, it&#8217;s only showing the 10&#215;10 section you want.</p>
<p>Very nice, and very elegant!  Thanks for the explanation :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-434</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Thu, 02 Dec 2010 20:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-434</guid>
		<description>Hi, Rob – great question about the corner images.  Essentially what I&#039;m doing in the examples above is &quot;clipping&quot; each corner image so that only 1/4th of the entire image is shown.  Even though the image appears to be a single circle, it&#039;s actually four separate images that are joined into a single image &quot;sprite.&quot;

For example, if my corners image is a 20x20 circle, I make my corners 10x10.  By shifting around the position of the background image, only one section of the image is shown at any given time.

Hope this helps clear things up for you.  Best of luck!</description>
		<content:encoded><![CDATA[<p>Hi, Rob – great question about the corner images.  Essentially what I&#8217;m doing in the examples above is &#8220;clipping&#8221; each corner image so that only 1/4th of the entire image is shown.  Even though the image appears to be a single circle, it&#8217;s actually four separate images that are joined into a single image &#8220;sprite.&#8221;</p>
<p>For example, if my corners image is a 20&#215;20 circle, I make my corners 10&#215;10.  By shifting around the position of the background image, only one section of the image is shown at any given time.</p>
<p>Hope this helps clear things up for you.  Best of luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RobD</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-433</link>
		<dc:creator>RobD</dc:creator>
		<pubDate>Thu, 02 Dec 2010 16:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-433</guid>
		<description>OK, I&#039;m going to admit to a bit of ignorance here and I&#039;m hoping you can explain..  I understand exactly how you&#039;re positioning your image to create the round corners...what I don&#039;t understand is how the other corners don&#039;t show.  

Example
If I position the image in the upper left, I have 3 other portions of the sprite that aren&#039;t transparent (the other 3 corners).. If I have a background color in my box of red, and my sprite has a background of white (as your&#039;s does), why do I not see the 3 other &quot;white&quot; corners.   My guess is that the image, because it&#039;s in teh background, is overwritten by the rest of the box (kinda of a &quot;z&quot; order thing).

Can you help clarify for me?</description>
		<content:encoded><![CDATA[<p>OK, I&#8217;m going to admit to a bit of ignorance here and I&#8217;m hoping you can explain..  I understand exactly how you&#8217;re positioning your image to create the round corners&#8230;what I don&#8217;t understand is how the other corners don&#8217;t show.  </p>
<p>Example<br />
If I position the image in the upper left, I have 3 other portions of the sprite that aren&#8217;t transparent (the other 3 corners).. If I have a background color in my box of red, and my sprite has a background of white (as your&#8217;s does), why do I not see the 3 other &#8220;white&#8221; corners.   My guess is that the image, because it&#8217;s in teh background, is overwritten by the rest of the box (kinda of a &#8220;z&#8221; order thing).</p>
<p>Can you help clarify for me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-389</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Fri, 29 Oct 2010 13:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-389</guid>
		<description>Hi, Lucio. In that case, I will generally force the content to be fixed width, and use a header/background/footer image sprite that contains the corners and background for my box content.  It&#039;s less flexible, but displays well on top of images, gradients, and any other content.</description>
		<content:encoded><![CDATA[<p>Hi, Lucio. In that case, I will generally force the content to be fixed width, and use a header/background/footer image sprite that contains the corners and background for my box content.  It&#8217;s less flexible, but displays well on top of images, gradients, and any other content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucio</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-388</link>
		<dc:creator>Lucio</dc:creator>
		<pubDate>Fri, 29 Oct 2010 08:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-388</guid>
		<description>Hi Kyle, 

What if the background image is a gradient and the content of the div is overflowing (overflow:auto)? The look of the corner image breaks because of the behavior inside and around the div changes.

Any resolution about this? Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Kyle, </p>
<p>What if the background image is a gradient and the content of the div is overflowing (overflow:auto)? The look of the corner image breaks because of the behavior inside and around the div changes.</p>
<p>Any resolution about this? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-334</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Sun, 12 Sep 2010 23:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-334</guid>
		<description>Oops!  Sorry about the problems on this post -- the Photoshop templates are back, and the corners now display correctly in my examples!</description>
		<content:encoded><![CDATA[<p>Oops!  Sorry about the problems on this post &#8212; the Photoshop templates are back, and the corners now display correctly in my examples!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: holodoc</title>
		<link>http://kyleschaeffer.com/best-practices/reusable-transparent-css-rounded-corners/#comment-275</link>
		<dc:creator>holodoc</dc:creator>
		<pubDate>Thu, 02 Sep 2010 20:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=296#comment-275</guid>
		<description>Hey Kyle, the examples on this page are not working because you are missing the &quot;/wp-content/uploads/2009/09/cornerWhite.png&quot; file.</description>
		<content:encoded><![CDATA[<p>Hey Kyle, the examples on this page are not working because you are missing the &#8220;/wp-content/uploads/2009/09/cornerWhite.png&#8221; file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

