<?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>CSS Wizardry &#187; Border Radius</title>
	<atom:link href="http://csswizardry.com/tag/border-radius/feed/" rel="self" type="application/rss+xml" />
	<link>http://csswizardry.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 05 Sep 2010 18:05:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A quick note on border radius</title>
		<link>http://csswizardry.com/2010/03/a-quick-note-on-border-radius/</link>
		<comments>http://csswizardry.com/2010/03/a-quick-note-on-border-radius/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 10:34:55 +0000</pubDate>
		<dc:creator>Harry Roberts</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Border Radius]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://csswizardry.com/?p=853</guid>
		<description><![CDATA[This is a quick post concerning the border-radius CSS3 property, and the syntax behind it. After coming across this site earlier today via Twitter I remembered my initial frustrations with lack of uniformity across user agents and their required syntax in order to create round corners; Firefox requiring a different format to Webkit and the [...]]]></description>
			<content:encoded><![CDATA[<p><span class="opener"><span>T</span>his</span> is a quick post concerning the <code>border-radius</code> CSS3 property, and the syntax behind it. After coming across <a href="http://www.border-radius.com/">this site</a> earlier today via <a href="http://twitter.com/csswizardry" title="Harry Roberts on Twitter">Twitter</a> I remembered my initial frustrations with lack of uniformity across user agents and their required syntax in order to create round corners; Firefox requiring a different format to Webkit and the CSS3 spec was pretty annoying.</p>
<p><span id="more-853"></span></p>
<p>However, it&#8217;s not all that bad. As border-radius.com would have you believe, the syntax to create an element with top&ndash;left and bottom&ndash;right corners with a 50px round, and top&ndash;right and bottom&ndash;left corners with 10px rounds would be:</p>
<pre><code>-webkit-border-radius: 50px;
-webkit-border-top-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius: 50px;
-moz-border-radius-topright: 10px;
-moz-border-radius-bottomleft: 10px;
border-radius: 50px;
border-top-right-radius: 10px;
border-bottom-left-radius: 10px;</code></pre>
<p>Wrong, you can actually use the <code>border-radius</code> shorthand to nail this in three lines:</p>
<pre><code>-moz-border-radius:50px 10px 50px 10px;
-webkit-border-radius:50px 10px 50px 10px;
border-radius:50px 10px 50px 10px;</code></pre>
<p>The sytanx follows the following rule: <code>border-radius:top&ndash;left top&ndash;right bottom&ndash;right bottom&ndash;left;</code>. I&#8217;ve tested this in Firefox (<code>-moz-border-radius</code>), Webkit (<code>-webkit-border-radius</code>) and Opera (<code>border-radius</code>) and <a href="http://csswizardry.com/demos/border-radius/" title="Border radius demo">it works just fine</a>.</p>
<h2><ins datetime="2010-03-02T10:44:38+00:00">Addendum</ins></h2>
<p>You&#8217;d think Webkit would just be Webkit, right? Wrong. This works in Chrome but <em>not</em> Safari. I&#8217;ve had reports that Safari 4.0.4 (I guess it&#8217;s <em>not found it</em>, get it? Oh never mind.) doesn&#8217;t work. Useful&#8230;</p>
<p>Still, this version will work, and is still considerably shorter:</p>
<pre><code>-webkit-border-radius: 50px;
-webkit-border-top-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius:50px 10px 50px 10px;
border-radius:50px 10px 50px 10px;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://csswizardry.com/2010/03/a-quick-note-on-border-radius/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
