<?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; matrix</title>
	<atom:link href="http://www.cardeo.ca/tag/matrix/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>Most Popular Posts From 2008</title>
		<link>http://www.cardeo.ca/2008/most-popular-posts-from-2008</link>
		<comments>http://www.cardeo.ca/2008/most-popular-posts-from-2008#comments</comments>
		<pubDate>Wed, 31 Dec 2008 19:57:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Awesome]]></category>
		<category><![CDATA[badge]]></category>
		<category><![CDATA[christmas]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[Minimal]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[vector-pack]]></category>
		<category><![CDATA[vectors]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Themes]]></category>

		<guid isPermaLink="false">http://cardeo.ca/?p=1045</guid>
		<description><![CDATA[Have you recently discovered Cardeo Design Blog? If so, here&#8217;s a great way to jump into some of my best content. Below are a list of the most popular posts from 2008. It&#8217;s also a great resource if you are a returning reader. Happy New Year to everyone! Most Popular Posts on Cardeo Design Blog [...]]]></description>
			<content:encoded><![CDATA[<p>Have you recently discovered Cardeo Design Blog? If so, here&#8217;s a great way to jump into some of my best content. Below are a list of the most popular posts from 2008. It&#8217;s also a great resource if you are a returning reader. Happy New Year to everyone!</p>
<h4>Most Popular Posts on Cardeo Design Blog for 2008</h4>
<p><a href="http://cardeo.ca/2008/cardeo-minimal-wordpress-theme/">#1 Cardeo Minimal WordPress Theme</a><br />
The free Minimal theme has been my most popular post and WordPress freebie for 2008. Make sure you go download it, if you haven&#8217;t already.</p>
<p><a href="http://cardeo.ca/2008/cardeo-minimal-css-website-template/">#2 Cardeo Minimal Website Template</a><br />
So you guys like Minimal websites eh? The #2 post for 2008 is a website template based on the Minimal WordPress Theme. Also a free download, go and get it!</p>
<p><a href="http://cardeo.ca/2008/how-to-create-a-single-image-css-navigation-matrix/">#3 How To Create a Single Image CSS Navigation Matrix</a><br />
This is a tutorial on how to create an image based navigation with only CSS and 1 image. Check out <a href="http://www.apple.com" target="_blank">www.apple.com</a> or the demo to see this baby in action.</p>
<p><a href="http://cardeo.ca/2008/cardeo-mini-wordpress-theme/">#4 Cardeo Mini WordPress Theme</a><br />
This is another free Minimal WordPress Theme that is available for download.</p>
<p><a href="http://cardeo.ca/2008/free-christmas-vector-pack/">#5 Free Christmas Vector Pack</a><br />
This was the second of two vector packs I released in 2008. It was a great success and I plan to release more free vector packs in 2009!</p>
<p><a href="http://cardeo.ca/2008/how-to-add-a-twitter-badge-to-your-website/">#6 How to Add a Twitter Badge to Your Website</a><br />
This tutorial is a quick explanation on how you can add a custom Twitter badge to your own website.</p>
<p><a href="http://cardeo.ca/2008/cardeo-public-wordpress-theme/">#7 Cardeo Public WordPress Theme</a><br />
Public was the second free WordPress theme released in 2008. Like the most of my themes, it features a minimal layout, twitter integration, and flickr photostream integration.</p>
<p><a href="http://cardeo.ca/2008/barack-obama-t-shirts/">#8 Barack Obama T-Shirts</a><br />
2008 was the year of Obama. I tried to do my little part by designing some shirts and selling them on <a href="http://www.zazzle.com" target="_blank">zazzle.com</a>. I plan to donate the proceeds of the sales once a check is requested.</p>
<p><a href="http://cardeo.ca/2008/free-music-vector-pack/">#9 Free Music Vector Pack</a><br />
The first of two free vector packs I released in 2008. A rock n&#8217; roll theme for all the Cardeo readers.</p>
<p><a href="http://cardeo.ca/2008/cardeo-standard-wordpress-theme/">#10 Cardeo Standard WordPress Theme</a><br />
Last but not least, my first WordPress theme. Cardeo Standard is a free theme based on Swiss graphic design and typography</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cardeo.ca/2008/most-popular-posts-from-2008/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create A Single-Image CSS Navigation Matrix</title>
		<link>http://www.cardeo.ca/2008/how-to-create-a-single-image-css-navigation-matrix</link>
		<comments>http://www.cardeo.ca/2008/how-to-create-a-single-image-css-navigation-matrix#comments</comments>
		<pubDate>Mon, 13 Oct 2008 22:51:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[single-image]]></category>

		<guid isPermaLink="false">http://cardeo.ca/?p=658</guid>
		<description><![CDATA[Using a single-image CSS navigation matrix is a great way to build a nav bar that is light on images and relies primarily on CSS. We will use CSS to plot out the coordinates of each button and define it&#8217;s click-state. I recently used this technique for the re-design of yoursole.com (not live yet). Probably [...]]]></description>
			<content:encoded><![CDATA[<p>Using a single-image CSS navigation matrix is a great way to build a nav bar that is light on images and relies primarily on CSS. We will use CSS to plot out the coordinates of each button and define it&#8217;s click-state. I recently used this technique for the re-design of yoursole.com (not live yet). Probably the most well known website that uses this type of navigation bar is <a href="http://www.apple.com" target="_blank">apple.com</a>.<br />
<span id="more-658"></span><br />
First things first, <a href="http://www.mediafire.com/?05zmwzmzzqe" target="_blank">download</a> the source files that go with this tutorial. We&#8217;re going to create a nav bar with 3 buttons (Home, About, and Contact). Once you have download the source files, move onto the explanation of how it all works below.</p>
<h4>Step 01 &#8211; Creating your Navigation Matrix Image</h4>
<p>For this tutorial I have supplied you with the nav image. However, keep these points in mind for making your own matrix. It&#8217;s generally a good idea to keep your dimensions simple. For example, each buttons is 100px wide by 25px high. This will just make things less confusing when you are mapping out the button coordinates in your style sheet. When you are creating your image in photoshop, set the width to the total width of the nav bar. For our example that would be 300px wide.</p>
<p>You navigation matrix is going to be made up of four click-states which are: static, mouse over, mouse down, and selected. When you&#8217;re creating your image, we&#8217;re going to stack each state. Your total document height would be 100px (4 x 25px buttons). Your states should be stacked in the below order:</p>
<p><strong>static</strong> = unselected button with no mouse over.<br />
<strong>mouse over</strong> = when you roll the cursor over the button<br />
<strong>mouse down</strong> = when you click on the button<br />
<strong>selected</strong> = the selected button when you are on a specific page</p>
<p>Once you have your image ready, or please use the example for this tutorial, save it out and we are ready to move onto some CSS coding.</p>
<h4>Step 02 &#8211; Coding the CSS for the Matrix</h4>
<p>The first thing we need to do is a define a container for the entire navigation. Within this container we will define the dimensions of the bar, it&#8217;s position and the location of the matrix image. We&#8217;ll also setup the main styles which will be inherited to each of the nav buttons. The main container is set to position:relative so that if the window size changes, the nav bar moves with it. The inner buttons or li&#8217;s are set to position:absolute so that they always appear in the same location within the nav container. We&#8217;ve also set the li link to display as a block so that the entire height of the button is revealed.</p>
<p>Let me back up for one minute. I&#8217;m going to use an unordered list to setup the nav bar. An ID will be set for the entire bar, as well as, each individual button. There are other ways you could set this up but an unordered list makes the most sense to me.</p>
<pre class="highlight">
#nav {
 width: 300px;
 height: 25px;
 margin: 0;
 padding: 0;
 position: relative;
 background: url(nav.gif)  no-repeat;
}

#nav li {
 margin: 0;
 padding: 0;
 position: absolute;
 list-style: none;
 top: 0;
}

 #nav a {
 background: url(nav.gif) top left no-repeat;
}

#nav li, #nav a {
 height: 25px;
 display: block;
}
</pre>
<p>Our next step is to setup an ID for each button and designate the coordinates for each button. To keep the length of this post manageable, I&#8217;m only going to do this for one button in this example. For the other buttons, you should apply the same styles, changing the coordinates for each button appropriately.</p>
<p>The first thing we need to do is setup an ID for the Home button. Let&#8217;s call it #nav-home. Here we will set the width of the button and it&#8217;s location as 0 (top left of the nav container).</p>
<p>Next we will setup the location for the selected Home button. This is where the body ID of home comes in. We&#8217;re telling the browser only on the Homepage to display the home button as selected (body#home #nav-home a {}). We want to have the 4th line of the nav image displayed so we set it to -75px (measured from the top left corner of the entire image. I&#8217;ve also changed the text color to #333 so it shows up against the light grey background that is used for the selected state.</p>
<p>Next we will setup the coordinates for the Static Home button. We want the top line of the nav matrix image to appear so the coordinates are set to 0 top and 0 left.</p>
<p>Next for the Mouse Over State we will want to display the second line of the nav matrix. The coordinates are 0 left and -25 top.</p>
<p>The final step is to setup the Mouse Down state where we want to display the third line of the nav matrix. The coordinates are 0 left and -50 top. That&#8217;s it for the home button. Check out all the CSS code below. Like I said, I&#8217;m not going to list all the code for each button. You can check that out in the source stylesheet. I will however list all the coordinates below this code example for quick reference.</p>
<pre  class="highlight">
#nav-home {
 width: 100px;
 left: 0;
}

body#home #nav-home a {
 background-position: 0 -75px;
 color: #333;
}

#nav-home a, #nav-home a:link, #nav-home a:visited {
 background-position: 0 0;
}

#nav-home a:hover {
 background-position: 0 -25px;
}

#nav-home a:active, #nav-home a:active {
 background-position: 0 -50px;
}
</pre>
<h4>About &#38; Contact Button Coordinates</h4>
<p>About Static: 0 top -100 left<br />
About Mouse Over: -25 top -100 left<br />
About Mouse Down: -50 top -100 left<br />
About Selected: -75 top -100 left (change your body ID to &#8220;about&#8221;)</p>
<p>Contact Static: 0 top -200 left<br />
Contact Mouse Over: -25 top -200 left<br />
Contact Mouse Down: -50 top -200 left<br />
Contact Selected: -75 top -200 left (change your body ID to &#8220;contact&#8221;)</p>
<h4>Step 03 &#8211; Styling Your Button Text</h4>
<p>The last thing we need to do is add a couple of styles for the button text. Enter whatever text you want to appear on each button within each HTML document between the li tags for each button. For this example we are using  Home, About, and Contact</p>
<p>I&#8217;ve set the line-height of the text to 25px which is the same as the button height. This is done to allow the text to center perfectly vertical within the button box. I&#8217;ve also set the text-align to center so the text is horizontally centered within each button. At a minimum those are the styles you need to use, feel free to add more.</p>
<pre class="highlight">
a, a:link, a:visited, a:hover {
 font-size:10px;
 line-height: 25px;
 color: #fff;
 text-align: center;
}
</pre>
<blockquote class="center"><p><a href="http://cardeo.ca/demos/nav-matrix/" target="_blank">View Demo</a> | <a href="http://www.mediafire.com/?05zmwzmzzqe" target="_blank">Download Source Files</a></p></blockquote>
<p>Well that is probably my most complicated post to date. I hope my explanation was straight forward but if you have any questions, please post them below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cardeo.ca/2008/how-to-create-a-single-image-css-navigation-matrix/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

