<?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>Design strike &#187; rounded corners</title>
	<atom:link href="http://designstrike.net/tag/rounded-corners/feed" rel="self" type="application/rss+xml" />
	<link>http://designstrike.net</link>
	<description>Striking with the latest design info</description>
	<lastBuildDate>Fri, 18 Jun 2010 13:51:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to set up rounded corners using JavaScript in Joomla Modules</title>
		<link>http://designstrike.net/development/cms-development/how-to-set-up-rounded-corners-using-javascript-in-joomla-modules.html</link>
		<comments>http://designstrike.net/development/cms-development/how-to-set-up-rounded-corners-using-javascript-in-joomla-modules.html#comments</comments>
		<pubDate>Thu, 20 Aug 2009 12:01:21 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CMS Development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[rounded corners]]></category>

		<guid isPermaLink="false">http://designstrike.net/?p=553</guid>
		<description><![CDATA[A very interesting fact about joomla is that you can&#8217;t have separate module styles all the time. You need to work your way with module class suffix. Well, how do you have the right sidebar modules with rounded corners whyle the left sidebar menu has a different style? The answer is simple, with a little [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdesignstrike.net%2Fdevelopment%2Fcms-development%2Fhow-to-set-up-rounded-corners-using-javascript-in-joomla-modules.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdesignstrike.net%2Fdevelopment%2Fcms-development%2Fhow-to-set-up-rounded-corners-using-javascript-in-joomla-modules.html&amp;source=designstrike&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>A very interesting fact about joomla is that you can&#8217;t have separate module styles all the time. You need to work your way with module class suffix. Well, how do you have the right sidebar modules with rounded corners whyle the left sidebar menu has a different style?<br />
<span id="more-553"></span><br />
<strong>The answer is simple, with a little help of javascript.</strong> And here si how you can get it done. </p>
<h2>First step is to include the code</h2>
<p>Open up your template`s index.php file and paste <a href="http://designstrike.net/wp-content/uploads/2009/08/code.txt" rel='nofollow'>this code</a> before the end of the head tag. </p>
<p><a href="http://designstrike.net/wp-content/uploads/2009/08/Ex1.png" rel='nofollow'><img src="http://designstrike.net/wp-content/uploads/2009/08/Ex1-thumb.png" alt="Ex1-thumb" title="Ex1-thumb" width="650" height="347" class="alignnone size-full wp-image-562" /></a></p>
<p>After that include <a href="http://designstrike.net/wp-content/uploads/2009/08/curvycorners.js" rel='nofollow'>this js</a> inside your template folder. (Right click -> &#8220;Save As&#8221;). Then navigate to your module and set up a suffix in the module like in the picture below. </p>
<p><a href="http://designstrike.net/wp-content/uploads/2009/08/mcs.png" rel='nofollow'><img src="http://designstrike.net/wp-content/uploads/2009/08/mcs.png" alt="mcs" title="mcs" width="650" height="200" class="alignnone size-full wp-image-566" /></a></p>
<p>Next step is to change within the pasted code we inserted earlyer the new class name of the module. If the module class suffix is &#8220;<strong>_john</strong>&#8221; within the code we replace it like this:</p>
<p><a href="http://designstrike.net/wp-content/uploads/2009/08/john.png" rel='nofollow'><img src="http://designstrike.net/wp-content/uploads/2009/08/john.png" alt="john" title="john" width="650" height="250" class="alignnone size-full wp-image-567" /></a></p>
<p>And presto, you have instant rounded corners even in IE. NOTE that for a menu module the prefix for the menu class is &#8220;<strong>module</strong>&#8220;. So the code will be like &#8220;<strong>module_menuname</strong>&#8220;.</p>
<p><strong>Other rounded corners resources for Joomla</strong>:</p>
<ul>
<li><a href="http://docs.joomla.org/Creating_rounded_corners" rel='nofollow'>Creating rounded corners in Joomla Modules</a></li>
<li><a href="http://www.the-art-of-web.com/css/border-radius/" rel='nofollow'>CSS: border-radius and -moz-border-radius</a></li>
<li><a href="http://help.joomla.org/ghop/feb2008/task057/Joomla%20Class%20Suffix%20Guides.pdf" rel='nofollow'>Joomla Class Suffix guide</a></li>
</ul>
<p>The credits for the Javascript code go to <a href="http://www.curvycorners.net/" rel='nofollow'>CurvyCorners</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://designstrike.net/development/cms-development/how-to-set-up-rounded-corners-using-javascript-in-joomla-modules.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
