<?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>Muthuswamy &#187; CSS</title>
	<atom:link href="http://www.muthuswamy.in/category/blog-listing/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.muthuswamy.in</link>
	<description>Web Developer</description>
	<lastBuildDate>Fri, 30 Apr 2010 05:55:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using CSS sliding window menu in Wordpress</title>
		<link>http://www.muthuswamy.in/119/using-css-sliding-window-menu-in-wordpress</link>
		<comments>http://www.muthuswamy.in/119/using-css-sliding-window-menu-in-wordpress#comments</comments>
		<pubDate>Fri, 06 Mar 2009 14:37:00 +0000</pubDate>
		<dc:creator>Muthuswamy K</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[sliding window]]></category>

		<guid isPermaLink="false">http://www.muthuswamy.in/?p=119</guid>
		<description><![CDATA[If you are one among the one who hate IE6 being still alive, you will understand the problem that I am trying to solve here. A sliding window technique is a CSS approach to make the menu items with unusual styling(rounded corners, bite corners, etc,.). This is attained by using 2 images. To know more [...]]]></description>
			<content:encoded><![CDATA[<p>If you are one among the one who hate IE6 being still alive, you will understand the problem that I am trying to solve here. A sliding window technique is a CSS approach to make the menu items with unusual styling(rounded corners, bite corners, etc,.). This is attained by using 2 images. To know more about <strong>CSS sliding window menus</strong> with examples visit <a href="http://www.dynamicdrive.com/style/csslibrary/item/glossy_horizontal_menu/">Dynamic Drive</a>.</p>
<p>This technique requires two levels of markup:<br />
<textarea class="html" cols="60" rows="5" name="code">&lt;li&gt;&lt;a&gt;&lt;span&gt;Content here&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</textarea></p>
<p>Because of this, you need to add and extra &lt;span&gt;&lt;/span&gt; wrap for your menu content or you can use the &lt;li&gt; and &lt;a&gt; as pairs, but the problem raises in IE6 as IE6 does not support <strong>CSS hover for &lt;li&gt;</strong>. Adding an extra span can be easy for a static site, but in wordpress the pages or categories that are usually used as page items are generated by built-in functions that do no provide options to add the extra &lt;span&gt; tag for versions older than wordpress 2.7. Sadly there are still some people who are using older versions of wordpress, so make your theme suit them all by using this technique.</p>
<p>Here is a simple PHP code that can save you from this problem:<br />
<textarea class="php" cols="60" rows="5" name="code">&lt;?php&lt;br /&gt; $mypagelist = wp_list_pages(&#8216;title_li=&amp;depth=-1&amp;echo=0&#8242; );&lt;br /&gt; $mypagelist = eregi_replace(&#8216;(&lt;a [a-zA-Z0-9 /.?_=:"-]*&gt;)&#8217;,'\1&lt;span&gt;&#8217;,$mypagelist);&lt;br /&gt; $mypagelist = eregi_replace(&#8216;(&lt;/a&gt;)&#8217;,'&lt;/span&gt;\1&#8242;,$mypagelist);&lt;br /&gt; echo $mypagelist;&lt;br /&gt; ?&gt;</textarea></p>
<p>This code will get the page list from the &#8220;<strong>wp_list_pages</strong>&#8221; function and adds the wrapping&lt;span&gt; and &lt;/span&gt; tags and prints then on the page. You can use the same technique for functions like:</p>
<ul>
<li>wp_list_pages</li>
<li>wp_list_categories</li>
<li>wp_list_bookmarks</li>
<li>wp_list_authors</li>
</ul>
<p>Please leave your comments and suggestions related to this topic in the comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muthuswamy.in/119/using-css-sliding-window-menu-in-wordpress/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Shorthand &#8211; Simplified (Part 2)</title>
		<link>http://www.muthuswamy.in/99/css-shorthand-simplified-part-2</link>
		<comments>http://www.muthuswamy.in/99/css-shorthand-simplified-part-2#comments</comments>
		<pubDate>Mon, 26 Jan 2009 17:06:50 +0000</pubDate>
		<dc:creator>Muthuswamy K</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Shorthand]]></category>

		<guid isPermaLink="false">http://www.muthuswamy.in/?p=99</guid>
		<description><![CDATA[Font property has a number of sub properties like font-style, font-variant,font-weight, font-size, line-height, font-family which can be written in one single property "font". Similarly for border there are three important properties.]]></description>
			<content:encoded><![CDATA[<p>If you have come here directly, I recommend you to read the first part of this tutorial <a title="CSS shorthand simplified" href="http://www.muthuswamy.in/66/css-shorthand-simplified">here</a>.</p>
<p><strong>Font:</strong><br />
Font property has a number of sub properties like:</p>
<ul>
<li>font-style: <em>normal</em></li>
<li>font-variant: <em>normal</em></li>
<li>font-weight: <em>normal</em></li>
<li>font-size: <em>inherit</em></li>
<li>line-height: <em>normal</em></li>
<li>font-family:<em> inherit</em></li>
</ul>
<p>You can give values for all these properties just within a single property named &#8220;font&#8221;. A simple example of it is given here:</p>
<p><textarea class="css" cols="60" rows="5" name="code">span{font:italic bold 16px Arial, Helvetica, sans-serif;}</textarea><br />
Here we use implicit specifications of font properties as given in the list above.</p>
<p><strong>Border:</strong><br />
You may have used borders many time, but from now on you are going to use it in short version. Let&#8217;s see the available border properties.</p>
<ul>
<li>border-width</li>
<li>border-style</li>
<li>border-color</li>
</ul>
<p>There are no default values for border properties, so you have to specify every property to make the border visible. We can see a sample code here:</p>
<p><textarea class="css" cols="60" rows="5" name="code">div{border:#000 2px solid;}</textarea><br />
This will create a continuous black border of 2px width. If you wish to use different widths for youe borders you can use the following code:</p>
<p><textarea class="css" cols="60" rows="5" name="code">div{border:#000 2px 4px 3px 4px solid;}</textarea></p>
<p><img class="alignleft size-full wp-image-100" title="css_clock" src="http://www.muthuswamy.in/wp-content/uploads/2009/01/css_clock.png" alt="css_clock" width="200" height="200" />Here we use a shorthand version of specifying widths. We use a clockwise representation of border widths.</p>
<p>Here the &#8220;Top border&#8221; width is specified first, then &#8220;Right border&#8221; width, &#8220;Bottom border&#8221; width followed by &#8220;Left border&#8221; width. Let&#8217;s call this a <strong>&#8220;CSS Clock&#8221;</strong> to make it easy to remember.</p>
<p>This type of representation is used everywhere in CSS when it comes to representing properties that has top, right,bottom and left regions.</p>
<p>I am stopping this part right here to give you some break. The third part will be released in next few days.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muthuswamy.in/99/css-shorthand-simplified-part-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Shorthand &#8211; Simplified</title>
		<link>http://www.muthuswamy.in/66/css-shorthand-simplified</link>
		<comments>http://www.muthuswamy.in/66/css-shorthand-simplified#comments</comments>
		<pubDate>Mon, 19 Jan 2009 14:55:34 +0000</pubDate>
		<dc:creator>Muthuswamy K</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Optimize]]></category>
		<category><![CDATA[Shorthand]]></category>

		<guid isPermaLink="false">http://www.muthuswamy.in/?p=66</guid>
		<description><![CDATA[This is my first post and I want this to be useful to the readers, so I am writing about using shorthand codes in CSS. Before I get deep into CSS shorthands let me answer some of the frequent questions that may pop in your minds.
What is this CSS Shorthand?
Each CSS property has its own [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first post and I want this to be useful to the readers, so I am writing about using shorthand codes in CSS. Before I get deep into CSS shorthands let me answer some of the frequent questions that may pop in your minds.</p>
<h3>What is this CSS Shorthand?</h3>
<p>Each CSS property has its own name and value. But the technique of grouping similar CSS properties by just setting values to the generalized name. I am sure that you will understand it better at the end of this tutorial.</p>
<h3>Why should I use CSS Shorthand?</h3>
<p>By using CSS shorthand technique, you actually have the following benefits:</p>
<ul>
<li> You reduce the CSS file size which proportionally reduces the load time.</li>
<li>CSS code will be clean and easy to manage.</li>
<li>It proves that you are an expert in CSS.</li>
</ul>
<h3>So why are you waiting? Teach me.</h3>
<p>Ya, Lets start. I am going to take you through each property which can be minimized. First I will show you the expanded version, then the procedure to minimize it.</p>
<p><strong>Background:</strong><br />
The list of properties available for background and their default values:</p>
<ul>
<li>background-color:<em> transparent</em></li>
<li>background-image: <em>none</em></li>
<li>background-repeat: <em>repeat</em></li>
<li>background-position: <em>scroll</em></li>
<li>background-attachment: <em>top left</em></li>
</ul>
<p>You don&#8217;t have to give each property separately, instead we use a single property &#8220;<em>background</em>&#8220;. Here is an example:<br />
<textarea class="css" cols="60" rows="5" name="code">div{background:#000 url(images/picture.jpg) no-repeat center 50% fixed;}</textarea><br />
Here the color, image URL, image repeat, position and attachment properties are described in just one line. Even if you leave out any of the properties, the default values are used. If you notice the code, you can see that I have used hexadecimal(hex) value for color. Usually hex values are 6 digits but here I have used a shortened version. You can shorten the digits if they appear in pairs. For example, #666666 can be written as #666, #44BBAA can be written as #4BA but you cannot shorten color values like #693B45 or #EE4423.</p>
<p>I wish to stop this tutorial right here and request you to get some practice in this topic. The next part of this tutorial will contain techniques to reduce other CSS properties. I will update here once the next part is released. Happy coding.</p>
<p>Update: <a title="CSS shorthand simplified part 2" href="http://www.muthuswamy.in/99/css-shorthand-simplified-part-2">CSS Shorthand &#8211; Simplified (Part 2)</a> published.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muthuswamy.in/66/css-shorthand-simplified/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
