<?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>Cowburn &#187; CSS</title>
	<atom:link href="http://cowburn.info/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://cowburn.info</link>
	<description>Online storage depot for Peter Cowburn</description>
	<lastBuildDate>Thu, 22 Jul 2010 17:51:41 +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>The Case of the Disppearing Sidebar</title>
		<link>http://cowburn.info/2009/01/15/disppearing-sidebar/</link>
		<comments>http://cowburn.info/2009/01/15/disppearing-sidebar/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 14:46:56 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://cowburn.info/?p=84</guid>
		<description><![CDATA[Howdy folks, as part of the ongoing little tweaks and changes that I make to this blog, I decided to try a little experiment in minimalism. The target of this experiment is my little sidebar which is attached to the right-hand side (at the moment) of every single page. The main point is that I [...]]]></description>
			<content:encoded><![CDATA[<p>Howdy folks, as part of the ongoing little tweaks and changes that I make to this blog, I decided to try a little experiment in minimalism.</p>
<p>The target of this experiment is my little sidebar which is attached to the right-hand side (at the moment) of every single page.  The main point is that I got sick of continually seeing this sidebar beside my main content: it&#8217;s distracting.</p>
<p><span id="more-84"></span></p>
<p>To put the emphasis back onto the content, I thought of a few things such as changing the colours (to a lighter shade) as well as text size in order to help the sidebar fade into the background. However, nothing really quite cut it.  The only thing that really seemed to work was to remove the sidebar completely!  The idea seemed silly since there are some useful links and tools in there (it&#8217;s surprising how many people want to translate my posts and there&#8217;s the neat little search box).  Could there be a compromise? Ideally, we want to see the sidebar when there&#8217;s something inside we want to make use of but at other times hide it away to keep the page tidy.  Hovering over the area where the sidebar is (as you would if you wanted to use something inside it) proved to be the simplest trigger.</p>
<p>But if the sidebar is hidden, how to people know it&#8217;s there? I thought of having a little button there which provided a visual cue when the sidebar was hidden, but that went against the idea of hiding it in the first place since there was always something there, being distracting.</p>
<p>Instead I decided to display the sidebar for a couple of seconds when the page is loaded and then to fade it out automatically.  This visual change in the page is enough for the eye to recognise the change (in this case the block fading out) in the peripheral vision so that the visitor knows there&#8217;s a sidebar but it&#8217;s just hiding at the moment.  That&#8217;s the idea anyway.</p>
<div id="attachment_86" class="wp-caption aligncenter" style="width: 530px"><img src="http://cowburn.info/wp-content/uploads/2009/01/sidebar.gif" alt="Before/after showing sidebar" title="Disappearing Sidebar" width="530" height="166" class="size-full wp-image-86" /><p class="wp-caption-text">Before <span class="amp">&#038;</span> after showing sidebar</p></div>
<p>What are your thoughts?</p>
]]></content:encoded>
			<wfw:commentRss>http://cowburn.info/2009/01/15/disppearing-sidebar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Custom Cursors in CSS</title>
		<link>http://cowburn.info/2006/11/06/custom-cursors-in-css/</link>
		<comments>http://cowburn.info/2006/11/06/custom-cursors-in-css/#comments</comments>
		<pubDate>Mon, 06 Nov 2006 18:43:13 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://cowburn.info/web-coding/custom-cursors-in-css/</guid>
		<description><![CDATA[Well, on one of the forums that I visit regularly someone posted asking if it was possible to change the default mouse cursor into a magnifying glass &#8212; to indicate that the user can zoom in on the image, in this particular case &#8212; rather than whatever the browser normally uses. It is possible using [...]]]></description>
			<content:encoded><![CDATA[<p>Well, on one of the forums that I visit regularly someone posted asking if it was possible to change the default mouse cursor into a magnifying glass &#8212; to indicate that the user can zoom in on the image, in this particular case &#8212; rather than whatever the browser normally uses.</p>
<p>It is possible using standard CSS but the results are somewhat limited: I only got it to work in Firefox and IE on my computer (Windows).  But since those browsers account for probably 90% of visitors, and the change is really only a handy little cosmetic one to aid visitors, it&#8217;s worth sharing how to do it!</p>
<p>It all simply comes down to the <code>cursor</code> property in CSS.</p>
<p><strong>What to use:</strong></p>
<pre><code>img.zoomable { cursor: url(magnify.cur), -moz-zoom-in, pointer; }</code></pre>
<p><strong>Example:</strong><br />
<img style="cursor: url(/files/magnify.cur), -moz-zoom-in, pointer;" src="/files/custom-cursor-example.jpg" alt="Magnifying glass cursor over image" /></p>
<p>If you want to download the special <em>magnify.cur</em> file that I created for this example, then feel free: <a href="/files/magnify.cur">download magnify.cur</a></p>
<p>I hope that helped the person on the forums, even just a little bit.</p>
]]></content:encoded>
			<wfw:commentRss>http://cowburn.info/2006/11/06/custom-cursors-in-css/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
