<?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>Joseph Scott &#187; chrome</title>
	<atom:link href="http://josephscott.org/archives/tag/chrome/feed/" rel="self" type="application/rss+xml" />
	<link>http://josephscott.org</link>
	<description></description>
	<lastBuildDate>Mon, 06 Sep 2010 17:44:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://josephscott.org/?pushpress=hub'/>
		<item>
		<title>CSS Border Radius Percentages and Elliptical Borders</title>
		<link>http://josephscott.org/archives/2010/01/css-border-radius-percentages-and-elliptical-borders/</link>
		<comments>http://josephscott.org/archives/2010/01/css-border-radius-percentages-and-elliptical-borders/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 02:09:52 +0000</pubDate>
		<dc:creator>Joseph Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet-explorer]]></category>

		<guid isPermaLink="false">http://josephscott.org/?p=1814</guid>
		<description><![CDATA[When using CSS border radius I&#8217;ve always specified the radius in pixels (px), something like this: .round-box { border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; } This got me to wondering, does it support percentages as well? So I tried this: &#8230; <a href="http://josephscott.org/archives/2010/01/css-border-radius-percentages-and-elliptical-borders/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When using CSS border radius I&#8217;ve always specified the radius in pixels (px), something like this:</p>
<pre class="brush: css;">
.round-box {
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
</pre>
<p>This got me to wondering, does it support percentages as well?  So I tried this:</p>
<pre class="brush: css;">
.round-box {
    border-radius: 5%;
    -moz-border-radius: 5%;
    -webkit-border-radius: 5%;
}
</pre>
<p>This worked in Firefox 3.6 but not in Chrome.  Some searching around revealed the <a href="https://developer.mozilla.org/en/CSS:-moz-border-radius">Mozilla -moz-border-radius</a> page.  For border radius it specifically mentions that it supports <a href="https://developer.mozilla.org/en/CSS/length">length units</a> as well as percentages:</p>
<blockquote><p>
A percentage, relative to the width of the box (the percentage is relative to the width even when specifying the radius for a height).
</p></blockquote>
<p>That page also mentioned support for elliptical borders.  To do that you add another radius value separated by a slash:</p>
<pre class="brush: css;">
.round-box {
    border-radius: 15px / 50px;
    -moz-border-radius: 15px / 50px;
    -webkit-border-radius: 15px / 50px;
}
</pre>
<p>The elliptical border worked on Chrome as well.  If you bend this tight enough you can get pretty close to a circle.</p>
<p>I wanted Internet Explorer to add support for border radius before; now that I&#8217;ve got even more radius toys to play with I&#8217;m practically begging.  I&#8217;m sorry Internet Explorer users but I&#8217;m tired of various border hacks when there are simple and clean CSS methods available.</p>
]]></content:encoded>
			<wfw:commentRss>http://josephscott.org/archives/2010/01/css-border-radius-percentages-and-elliptical-borders/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
