<?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>CM &#187; jQuery</title>
	<atom:link href="http://corymathews.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://corymathews.com</link>
	<description>Things I should remember and then some...</description>
	<lastBuildDate>Thu, 26 Jan 2012 16:27:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Rounded Corners using jQuery</title>
		<link>http://corymathews.com/rounded-corners-using-jquery/</link>
		<comments>http://corymathews.com/rounded-corners-using-jquery/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 03:37:36 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=348</guid>
		<description><![CDATA[jQuery is slowly changing the way web designers and developers create web sites. Here is an extremely easy way to achieve rounded corners using jQuery. You can view live demos on iSearchNotes.com or at the plug-in webpage. In order to create our rounded corners you will of course first need jQuery. If you do not already [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery is slowly changing the way web designers and developers create web sites. Here is an extremely easy way to achieve rounded corners using jQuery.</p>
<p>You can view live demos on <a href="http://www.isearchnotes.com/" target="_blank">iSearchNotes.com</a> or at the <a href="http://www.malsup.com/jquery/corner/" target="_blank">plug-in webpage</a>.</p>
<p>In order to create our rounded corners you will of course first need jQuery. If you do not already have jQuery hurry up and go download it at <a href="http://www.jquery.com" target="_blank">jquery.com</a>. I will wait.</p>
<p>Waiting&#8230;</p>
<p>Ok so now you will also need to download the rounded corners plug-in. This small jQuery script can be downloaded by saving this file <a href="http://www.malsup.com/jquery/corner/jquery.corner.js" target="_blank">jquery.corner.js</a></p>
<p>Now we have all that will will need to round those corners. On the page you wish to have the rounded corners on you must add includes to both javascript files.</p>
<pre name="code" class="html">&lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.corner.js"&gt;&lt;/script&gt;</pre>
<p>Now we must tell jQuery which areas of the layout to round.</p>
<pre name="code" class="javascript">&lt;script type="text/javascript"&gt;
$(function(){
$("#content").corner()
});
&lt;/script&gt;</pre>
<pre name="code" class="html">&lt;div id="content"&gt;Hello this would have rounded corners&lt;/div&gt;</pre>
<p>This simply uses <a title="jQuery Selectors" href="http://docs.jquery.com/Selectors">jQuery&#8217;s selectors</a> to select the id content and rounds all 4 of that divs corners by the default amount.</p>
<p>This plug-in can do so much more then this example. You can pick which corners to round, how much to round by, how to round, and much, much, more. Instead of listing them all check out the <a href="http://www.malsup.com/jquery/corner/">plug-in page</a> to see more uses of it. (there are some pretty cool ones near the bottom of the page)</p>
<p>There are many different ways to use it but some of the more common uses would be:</p>
<pre name="code" class="javascript">
	$("#content").corner()
	$("#content").corner("bottom");
	$("#content").corner("top");
</pre>
<p>You could always avoid javascript altogether and do it the <a href="http://www.osguide.net/Tutorials/tutorial.php?p=4">hard way using css</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/rounded-corners-using-jquery/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

