<?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>Cardeo &#187; rounded-corners</title>
	<atom:link href="http://www.cardeo.ca/tag/rounded-corners/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cardeo.ca</link>
	<description>Ramblings on web design and social media</description>
	<lastBuildDate>Wed, 26 Oct 2011 17:58:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CSS3 rounded corners using the border-radius property</title>
		<link>http://www.cardeo.ca/2010/css3-rounded-corners-using-the-border-radius-propert</link>
		<comments>http://www.cardeo.ca/2010/css3-rounded-corners-using-the-border-radius-propert#comments</comments>
		<pubDate>Mon, 08 Feb 2010 02:00:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[rounded-corners]]></category>

		<guid isPermaLink="false">http://www.cardeo.ca/?p=2415</guid>
		<description><![CDATA[Round corners, without the need of images, is one of the most exciting new features of CSS3. In the past, a web designer would have to use images and tons of code to use rounded corners in their designs. Thanks to the new border-radius property, designers can easily add rounded corners to their layouts. The [...]]]></description>
			<content:encoded><![CDATA[<p>Round corners, without the need of images, is one of the most exciting new features of CSS3. In the past, a web designer would have to use images and tons of code to use rounded corners in their designs. Thanks to the new <strong>border-radius</strong> property, designers can easily add rounded corners to their layouts.<br />
<span id="more-2415"></span></p>
<h4>The border-radius property</h4>
<p>The CSS3 code we use to achieve rounded corners requires a different property for Safari and Firefox. At the time of posting this tutorial, it&#8217;s a necessary evil we have to live with. In the future, once all browsers support the property, it will become easier. Anyhow, moving on to the CSS3 code required to add rounded corners.</p>
<h4>Rounded box example</h4>
<p style="-webkit-border-radius:10px;-moz-border-radius:10px;padding:10px;background-color:#ccc; text-align:center;"><strong>Rounded Corners using border-radius</strong></p>
<h4>The code for the rounded box</h4>
<pre class="highlight">
.rounded-box {
 background-color: #ccc;
 padding: 10px;
 -moz-border-radius: 10px; /* for Firefox */
 text-align: center;
 -webkit-border-radius: 10px; /* for Safari */
}
</pre>
<blockquote><p>WebKit is the name of the Mac OS X system framework version of the engine that&#8217;s used by Safari. Therefore, any CSS3 we code for Safari will have -wedkit in the property name. Mozilla is the framework Firefox is built on, so any properties using <strong>-moz</strong> are for Firefox.</p></blockquote>
<h4>The border-radius code explained</h4>
<ul>
<li>The only CSS3 required for the box is the <strong>-webkit-border-radius</strong> property, and the <strong>-moz-border-radius</strong> property. However, I&#8217;ve filled out the box with a few additional styles to give it some life.</li>
<li>I&#8217;ve created a class called <strong>rounded-box</strong> so we can reuse this class on any box element that we would like to have rounded corners.</li>
<li><strong>-webkit-border-radius: 10px;</strong> sets the border radius for each corner to 10 pixels. For corners that are more rounded, increase the pixel value. For less rounded corners, you would decrease the pixel value. The same goes for <strong>-moz-border-radius</strong>.</li>
</ul>
<h4>Additional radius control</h4>
<p>If you would like to apply different values for each corner of your box, you can do so by using the below properties. Why would you want to do this? Perhaps, you would only like rounded corners on the top of your box.</p>
<h4>Individual corner radius example</h4>
<p style="-webkit-border-top-left-radius:10px;-webkit-border-top-right-radius:10px;-webkit-border-bottom-left-radius:0px;-webkit-border-bottom-right-radius:0px;-moz-border-radius-topleft:10px;-moz-border-radius-topright:10px;-moz-border-radius-bottomleft:0px;-moz-border-radius-bottomright:0px;padding:10px;background-color:#ccc;text-align:center;"><strong>Only Top Corners Rounded</strong></p>
<h4>The code for controlling each corner</h4>
<pre class="highlight">
.rounded-top-box {
 background-color: #ccc;
 -moz-border-radius-topleft: 10px;
 -moz-border-radius-topright: 10px;
 -moz-border-radius-bottomleft: 0px;
 -moz-border-radius-bottomright: 0px;
 padding: 10px;
 text-align: center;
 -webkit-border-top-left-radius: 10px;
 -webkit-border-top-right-radius: 10px;
 -webkit-border-bottom-left-radius: 0px;
 -webkit-border-bottom-right-radius: 0px;
}
</pre>
<blockquote><p>Make sure you include a value for every corner, even if it&#8217;s 0px. If you leave the 0px values out, it will not work!</p></blockquote>
<h4>The individual corner radius code explained</h4>
<ul>
<li>Note, unlike the original example, we have an individual property for each corner of the box. Therefore, you are able to set a different value for each corner. For this example, I&#8217;ve added a radius of 10px to the top two corners.</li>
<li>I&#8217;ve created a new class for this box (<strong>rounded-top-box</strong>), so it can be used in the same style sheet as the original example with no conflicts.</li>
<li>The only code required to make this work is the border-radius properties. The other properties have been added to fill out the box.</li>
</ul>
<h4>Degrading for older browsers</h4>
<p>We&#8217;re still in a time of transition for CSS3 and not all browsers support these new propertiess &#8211; Internet Explorer please stand up. Many designers, like myself, have decided to embrace these new CSS3 features while also coding a &#8220;best case scenario&#8221; alternative for browsers that do not. This alternative is sometimes called graceful degrading. Which basically means, let&#8217;s make it look as good as we can in IE6. </p>
<h4>Example of a gracefully degraded box</h4>
<p style="background-color:#ccc;padding:10px;text-align:center;"><strong>Gracefully degrade for unsupported browsers</strong></p>
<p>As you&#8217;ll notice, the above box does not have the rounded corners. It does, however, have all the other characteristics we coded into our original boxes. So the downside is that we lose the rounded corners, but everything else looks the same. The good news is you don&#8217;t have to do any additional coding. The styles I added in the above boxes already allow for the degradation. That&#8217;s about all I have for rounded corners in CSS3. If you have any questions, please leave them on the comments below. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cardeo.ca/2010/css3-rounded-corners-using-the-border-radius-propert/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cardeo Three CSS3 Website Template</title>
		<link>http://www.cardeo.ca/2009/cardeo-three-css3-website-template</link>
		<comments>http://www.cardeo.ca/2009/cardeo-three-css3-website-template#comments</comments>
		<pubDate>Mon, 05 Oct 2009 04:09:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[custom-font]]></category>
		<category><![CDATA[font-shadow]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[rounded-corners]]></category>
		<category><![CDATA[website-template]]></category>

		<guid isPermaLink="false">http://www.cardeo.ca/?p=1929</guid>
		<description><![CDATA[Need hosting? Save 50% off your first year of hosting at dreamhost.com with the promo code CARDEO1YEAR Cardeo Three, a free CSS3 website template Cardeo Three is a free website template coded using CSS3. Before you get too excited, CSS3 is only supported on a few browsers, like the most recent releases of Firefox and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cardeo.ca/wp-content/uploads/2009/10/cardeo-three.png" alt="cardeo-three" title="cardeo-three" width="495" height="334" class="alignnone size-full wp-image-1930" /><span id="more-1929"></span></p>
<blockquote class="center"><p><strong>Need hosting? Save 50% off your first year of hosting at <a href="http://www.dreamhost.com" target="_blank">dreamhost.com</a> with the promo code CARDEO1YEAR</strong></p></blockquote>
<h4>Cardeo Three, a free CSS3 website template</h4>
<p>Cardeo Three is a free website template coded using CSS3. Before you get too excited, CSS3 is only supported on a few browsers, like the most recent releases of Firefox and Safari. Here&#8217;s a list of some of the CSS3 features in this template:</p>
<blockquote><p>Cardeo Three CSS3 Template <a href="http://www.cardeo.ca/cardeo-templates/cardeo-three/">View Demo</a> | <a href="http://cl.ly/3b3A1u3D0c2o1S04141i">Download</a></p></blockquote>
<h4>NEW CSS3 Features included:</h4>
<ul>
<li>Rounded Corners (no images!)</li>
<li>Custom Font Replacement</li>
<li>Font Shadow</li>
</ul>
<div id="paypal">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="10369" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="" />
<img alt="donate" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /><br />
</form>
</div>
<p>This work is licensed under the Creative Commons Attribution-Share Alike 2.5 Canada License. To view a copy of this license, visit <a href="http://creativecommons.org/licenses/by-sa/2.5/ca/" target="_blank">creativecommons.org</a> or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cardeo.ca/2009/cardeo-three-css3-website-template/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Taking Advantage of CSS 3</title>
		<link>http://www.cardeo.ca/2009/taking-advantage-of-css-3</link>
		<comments>http://www.cardeo.ca/2009/taking-advantage-of-css-3#comments</comments>
		<pubDate>Thu, 08 Jan 2009 20:50:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[rounded-corners]]></category>
		<category><![CDATA[smashing-magazine]]></category>
		<category><![CDATA[transparency]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://cardeo.ca/?p=1165</guid>
		<description><![CDATA[SmashingMagazine.com has published an excellent article outlining some new CSS 3 features for use in web design. Not every browser supports CSS 3 yet. However, now is a great time to start getting familiar with the new features. By the time all the browsers have caught up, you will be an expert and won&#8217;t have [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.smashingmagazine.com/2009/01/08/push-your-web-design-into-the-future-with-css3/" target="_blank">SmashingMagazine.com</a> has published an excellent article outlining some new CSS 3 features for use in web design. Not every browser supports CSS 3 yet. However, now is a great time to start getting familiar with the new features. By the time all the browsers have caught up, you will be an expert and won&#8217;t have to worry about learning a bunch of new code.  The techniques covered in the article are:<br />
<span id="more-1165"></span>
<ol>
<li>Border Radius: adding rounded corners with CSS</li>
<li>Border Image: using an image within a border</li>
<li>Box and Text Shadow: adding a shadow to boxes and text</li>
<li>Transparency: Controlling transparency with CSS</li>
<li>Custom Fonts: Using fonts outside of the regular web system font options</li>
<li>The pros and cons of using these new features in your current web design projects</li>
]]></content:encoded>
			<wfw:commentRss>http://www.cardeo.ca/2009/taking-advantage-of-css-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

