<?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>Renee Lung &#124; Graphic Design &#124; Web Design</title>
	<atom:link href="http://reneelung.ca/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://reneelung.ca/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 20 Feb 2010 00:16:04 +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>CSS Only Drop Down Menus</title>
		<link>http://reneelung.ca/blog/?p=7</link>
		<comments>http://reneelung.ca/blog/?p=7#comments</comments>
		<pubDate>Sat, 20 Feb 2010 00:16:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://reneelung.ca/blog/?p=7</guid>
		<description><![CDATA[I&#8217;ve been working with Cam on a new website, and he charged me with the task of making the drop down menus.
In the past, my drop downs have all been Javascript, but now that I&#8217;m more comfortable with CSS, I like the idea of a JS-free drop down menu. Not only is it way more [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working with <a href="http://www.cdmckay.org">Cam</a> on a new website, and he charged me with the task of making the drop down menus.</p>
<p>In the past, my drop downs have all been Javascript, but now that I&#8217;m more comfortable with CSS, I like the idea of a JS-free drop down menu. Not only is it way more accessible, it ensures that if your JS breaks, your page doesn&#8217;t break with it. Aesthetics aside, it also makes sure people can still get to your content.</p>
<p>CSS drop down menus take advantage of the <code>:hover</code> pseudo-class. Bonus: even Internet Explorer likes it!</p>
<p>The basic setup is this:</p>
<pre>ul.parents {
    list-style: none;
    padding: 0px;
    margin: 0px;
}
ul.parents li {
    float: left;
    display: inline-block;
}</pre>
<p>Now you have a nice row of list items. Then:</p>
<pre>ul.parents li &gt; ul {
    position: absolute;
    display: none;
    line-height: 100%;
    list-style: none;
    padding: 0px;
    margin: 0px;
}

ul.parents li:hover &gt; ul {
    display: block;
    clear: both;
}</pre>
<p>Now you have a list (your sub-menu items) that are hidden, but when you hover over the parent <code>&lt;li&gt;</code> element, the child list&#8217;s <code>display: none;</code> property is replaced with <code>display: block</code>. Brilliant!</p>
<p>I suppose it&#8217;s not rocket science, but it does feel like building your own house, or making mac-and-cheese from scratch. CSS wut wut!</p>
]]></content:encoded>
			<wfw:commentRss>http://reneelung.ca/blog/?feed=rss2&amp;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Template Functions Outside WP</title>
		<link>http://reneelung.ca/blog/?p=1</link>
		<comments>http://reneelung.ca/blog/?p=1#comments</comments>
		<pubDate>Fri, 19 Feb 2010 05:12:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://reneelung.ca/blog/?p=1</guid>
		<description><![CDATA[Sometimes you just don&#8217;t feel like templating a whole site. Or maybe you have a blog separate from your personal webpage. Either way, you might just want to use some nifty (that might be contentious) WP template functions to grab your blog posts and pump them into a page external to your blog. There are [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you just don&#8217;t feel like templating a whole site. Or maybe you have a blog separate from your personal webpage. Either way, you might just want to use some nifty (that might be contentious) WP template functions to grab your blog posts and pump them into a page external to your blog. There are already many posts about this out there in InterwebsBlogLand, but I figure that my post will only increase the chances of someone finding the answer they need.</p>
<p>There are a few solutions I suppose.</p>
<p>a) Publish and RSS feed, use jQuery&#8217;s $.getJSON( ); to pull in the data and access it iteratively, or</p>
<p>b) If you&#8217;re already familiar with the WP templating syntax, you might as well use what you know. This method also allows you to access a plethora of other WP functions and filtering options.</p>
<p>So, here we go:</p>
<pre>&lt;?php
define('WP_USE_THEMES', false);
require('blog/wp-load.php');
query_posts('');
?&gt;</pre>
<p>&#8230;where <code>blog</code> is the path to the root of your WordPress installation. With that in place, you can start your <a title="The WordPress Loop" href="http://codex.wordpress.org/The_Loop" target="_new">Loop</a> and grab posts to your heart&#8217;s desire.</p>
]]></content:encoded>
			<wfw:commentRss>http://reneelung.ca/blog/?feed=rss2&amp;p=1</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
