<?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>I am Ad Taylor &#187; CSS</title>
	<atom:link href="http://www.iamadtaylor.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iamadtaylor.com</link>
	<description>The portfolio and blog of Ad Taylor</description>
	<lastBuildDate>Thu, 20 May 2010 22:49:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A fixed position sidebar with scrollable content &#8211; all centred!!</title>
		<link>http://www.iamadtaylor.com/a-fixed-position-sidebar-with-scrollable-content-all-centred/</link>
		<comments>http://www.iamadtaylor.com/a-fixed-position-sidebar-with-scrollable-content-all-centred/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 23:04:40 +0000</pubDate>
		<dc:creator>Ad Taylor</dc:creator>
				<category><![CDATA[shorts]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=163</guid>
		<description><![CDATA[How to fixed position a side-navigation to a centred 960px grid.]]></description>
			<content:encoded><![CDATA[<p>Today I got the chance to redesign a site I made for a client sometime ago. I have been having the same problem with it I had back then. The sites aims are to be simple and minimal BUT to have all content broken into individual pages/sections. This lead to some <strong>small</strong> pages and it looked odd. (Though I thoroughly agree with small and simple approach)</p>
<p><strong>SO</strong><br/><br />
I decided I would make a single page site with all content separated down the page but joined together with some pretty graphics and smooth JavaScript. <strong>I hit a problem.</strong></p>
<p>I wanted the navigation to be fixed and on a 960px centred grid, with the navigation sat on the side on the content. I have to admit this got me stumped for a bit, but I figured out this way.</p>
<p><strong><em>WARNING:</strong> This <strong>could</strong> be a crappy method.</em></p>
<p>Assuming we have 3 DIVs &#8211; #wrap,#content and #sidebar the css would be as follows.</p>
<pre name="code" class="css">

#wrap {
	position: relative;
	width: 960px;
	margin : 0px auto;
}
#sidebar {
	position : fixed;
	top : 0px;
	left : 50%;
	width : 960px;
	padding-left : 235px;
}
#content {
	width : 700px;
}
</code>
</pre>
<h3>A brief explaination.</h3>
<p>The example all works off the assumption that the #content width is 700px and that we would want a 15px gutter between the elements. So as we are using a percentage to centre the DIV we know where the DIV will be — bang in the middle — and we need to work out how far to push it out. This is done by the simple calculation:</p>
<pre>
(700-(960/2))+15 = 235px
</pre>
</p>
<p>Yeah, I know, stupidly obviously simple. Just it had me hanging around for ages trying to solve. Just thought it could help someone else.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamadtaylor.com/a-fixed-position-sidebar-with-scrollable-content-all-centred/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beautiful site-maps from an unordered list</title>
		<link>http://www.iamadtaylor.com/beautiful-site-maps-from-an-unordered-list/</link>
		<comments>http://www.iamadtaylor.com/beautiful-site-maps-from-an-unordered-list/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 09:01:43 +0000</pubDate>
		<dc:creator>Ad Taylor</dc:creator>
				<category><![CDATA[shorts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[site-map]]></category>

		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=135</guid>
		<description><![CDATA[Matt Everson of Astuteo has created an awesome method to display site-maps from unordered lists.]]></description>
			<content:encoded><![CDATA[<p><a href="http://astuteo.com/slickmap/"><img src="http://www.iamadtaylor.com/wp-content/uploads/2009/07/Picture-10-300x238.png" alt="example of Slickmap in action" title="slickmap-example" width="220" height="158" class="right size-medium wp-image-136" /></a></p>
<p>So, everyday it usually takes me close to an hour to wade through my RSS feeds and to be honest it can seem a bit of a chore. But today I remembered why I did it; There are some bloody clever people out there just waiting to share beautiful ideas with anyone who will listen.</p>
<p><span class="vcard"><a href="ttp://astuteo.com" class="fn">Matt Everson</a> of <a href="ttp://astuteo.com" class="org">Astuteo</a></span> is one of these people. He has created a CSS file (and accompanying images) that style a unordered list into a great looking, easy to use and easy to maintain sitemap. I just ran it through its paces and it seems fairy bug free (though will take some knocking into shape for IE6) and I can&#8217;t wait to use it.</p>
<p>Thanks Matt!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamadtaylor.com/beautiful-site-maps-from-an-unordered-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone targeted CSS &#8211; An answer to the :hover issue?</title>
		<link>http://www.iamadtaylor.com/iphone-targeted-css/</link>
		<comments>http://www.iamadtaylor.com/iphone-targeted-css/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 09:23:40 +0000</pubDate>
		<dc:creator>Ad Taylor</dc:creator>
				<category><![CDATA[shorts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=70</guid>
		<description><![CDATA[I have been worried for some time about how iPhones and other handheld devices can't use the :hover function. The answer could lie in a few lines of CSS!]]></description>
			<content:encoded><![CDATA[<p>I have been <a href="http://twitter.com/iamadtaylor/status/2022722571" rel="bookmark me">worried</a> for some time about how iPhones and other handheld devices can&#8217;t use the <code>:hover</code> functions I seem to rely on heavily for idicating links and giving extra information.</p>
<p>The answer could be over at <a href="http://squaregirl.com/blog/2009/6/1/iphone-css.html" rel="bookmark">http://squaregirl.com</a> with just a few lines of CSS:</p>
<pre><code>@media only screen and (max-device-width: 480px) {
  body {color:#000;}
}</code></pre>
</p>
<p>As soon as I have a bit of time I am going to rectify this sites crappy handheld usability. </p>
<p><strong>Great work!!!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamadtaylor.com/iphone-targeted-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

