<?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>Webmonkey &#187; rounded corners</title>
    <atom:link href="http://www.webmonkey.com/tag/rounded-corners/feed/" rel="self" type="application/rss+xml" />
    <link>http://www.webmonkey.com</link>
    <description>The Web Developer&#039;s Resource</description>
    <lastBuildDate>Fri, 05 Apr 2013 20:20:46 +0000</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <generator>http://wordpress.org/?v=3.4.2</generator>
    
    <item>
        <title>A Universal Solution for Rounded Corners in Your Designs</title>
        <link>http://www.webmonkey.com/2010/02/a_universal_solution_for_rounded_corners_in_your_designs/</link>
        <comments>http://www.webmonkey.com/2010/02/a_universal_solution_for_rounded_corners_in_your_designs/#comments</comments>
        <pubDate>Thu, 18 Feb 2010 11:30:29 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/blog/auniversalsolutionforroundedcornersinyourdesigns</guid>
        		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Visual Design]]></category>
		<category><![CDATA[rounded corners]]></category>
		<category><![CDATA[user interface]]></category>
        <description><![CDATA[Say what you will about the aesthetics of rounded corners in web design, the reality is you&#8217;re probably going to have to implement them some day. It used to be that rounded corners required four separate images. Then came a clever trick that used just one circular image. But creating rounded corners was still a [...]]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled --><img class="blogimg" src="http://www.wired.com/images_blogs/epicenter/2010/02/bread_emiline220.jpg" width="260" />Say what you will about the aesthetics of rounded corners in web design, the reality is you&#8217;re probably going to have to implement them some day.</p>
<p>It used to be that rounded corners required four separate images. Then came a clever trick that used just one circular image. But creating rounded corners was still a pain &#8212; the task topped our <a href="http://www.webmonkey.com/blog/What_s_On_Your_CSS_Wishlist_">wishlist of CSS features back in 2008</a>. Now, with the arrival of CSS 3, it&#8217;s getting much easier to create rounded corners without using any images at all. For people who are into rounded corners, it&#8217;s the greatest thing since tabbed browsing.</p>
<p>Of course there&#8217;s one big problem with CSS 3 &#8212; not every browser supports the whole spec. And some of them (<em>cough</em>, IE) don&#8217;t support any of CSS 3&#8242;s rules. So while it&#8217;s all well and good to create rounded corners with CSS 3&#8242;s <code>border-radius</code>, Internet Explorer and Opera won&#8217;t render it properly.</p>
<p>Thankfully, the next versions of both browsers, Opera 10.5 and IE 9 respectively, will support <code>border-radius</code>. But in the mean time (and to deal with legacy browsers visiting your site), web designer and blogger Jon Raasch has come up with a handy mix of solutions that <a href="http://jonraasch.com/blog/css-rounded-corners-in-all-browsers">creates rounded corners in every browser without resorting to images</a>.</p>
<p>Raasch starts with the best case scenario &#8212; browsers that support CSS 3&#8242;s <code>border-radius</code> &#8212; and creates a pure CSS solution in the form of a class:</p>
<blockquote>
<pre class="brush: js"><code>

.rounded-corners {



    -moz-border-radius: 10px;



    -webkit-border-radius: 10px;



    -khtml-border-radius: 10px;



    border-radius: 10px;



}

    </code></pre>
</blockquote>
<p>For many that might be enough &#8212; Safari, Firefox and Chrome will all render rounded corners. Note the actual border-radius rule without the browser-specific prefix, which should cover any future case as well.</p>
<p>Given that rounded corners are generally not a make or break design element, you may be happy to let Opera and IE users see square corners on your pages. If, however, you don&#8217;t want any of your users to suffer the horror of angular corners, check out Raasch&#8217;s post to see how he solved the problem for Opera and IE.</p>
<p><em>Sliced bread photo: Emiline220/<a href="http://www.flickr.com/photos/emiline220/4273700175/in/photostream/">Flickr</a>, CC</em></p>
<p><strong>See Also:</strong></p>
<ul>
<li><a href="http://www.webmonkey.com/blog/Slick_Web_Design_Gets_Easier_Thanks_to_CSS_3_s_Transform_Tools">Slick Web Design Gets Easier Thanks to CSS 3&#8242;s Transform Tools</a></li>
<li><a href="http://www.webmonkey.com/blog/Complex_Web_Layouts_Made_Easy_With_New_CSS3__Flexible_Box_Model_">Complex Web Layouts Made Easy With New CSS3&#8242;s Flexible Box Model </a></li>
<li><a href="http://www.webmonkey.com/blog/Solving_Internet_Explorer_s_PNG_Shortcomings_with_JavaScript">Solving Internet Explorer&#8217;s PNG Shortcomings with JavaScript</a></li>
<li><a href="http://www.webmonkey.com/blog/What_s_On_Your_CSS_Wishlist_">What&#8217;s On Your CSS Wishlist?</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2010/02/a_universal_solution_for_rounded_corners_in_your_designs/feed/</wfw:commentRss>
        <slash:comments>7</slash:comments>

        
    </item>
    </channel>
</rss>