<?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>Kieran Chapman Design &#187; CSS</title>
	<atom:link href="http://kieranchapmandesign.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://kieranchapmandesign.com</link>
	<description>Web and user experience design by Kieran Chapman</description>
	<lastBuildDate>Mon, 25 Feb 2013 21:51:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Fun with Responsive Web Design</title>
		<link>http://kieranchapmandesign.com/2013/01/fun-with-responsive-web-design/</link>
		<comments>http://kieranchapmandesign.com/2013/01/fun-with-responsive-web-design/#comments</comments>
		<pubDate>Fri, 11 Jan 2013 20:34:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://kieranchapmandesign.com/?p=641</guid>
		<description><![CDATA[Optimizing websites for various screen sizes with CSS]]></description>
			<content:encoded><![CDATA[<p><img class="alignright  wp-image-647" title="responsivewebbook" src="http://kieranchapmandesign.com/wp/wp-content/uploads/2013/01/responsivewebbook.jpg" alt="" width="auto" height="200" />One of the most useful and eye-opening books I read last year was &#8220;Responsive Web Design&#8221; by Ethan Marcotte. It &#8220;explore[s] CSS techniques and design principles&#8221; and &#8220;demonstrat[es] how you can deliver a quality experience to your users no matter how large (or small) their display&#8221; (quoted from the  <a href="http://www.abookapart.com/products/responsive-web-design" target="_blank">ABA website</a>).</p>
<p>In short, he tells you how you can use CSS to optimize a single website for various screen sizes — large monitors, smaller tablets, tiny phones — using CSS. I think this is great for everyone involved on the web:</p>
<ul>
<li>Users won&#8217;t end up seeing the &#8220;wrong&#8221; version of a site, like when someone sends you a link to &#8220;m.website.com&#8221; from their mobile device, which in turn looks ridiculous on your computer screen.</li>
<li>IT people no longer have to manage two versions of the same site (regular and mobile).</li>
<li>Designers and developers only deal with a single site and code, with CSS making the layout decisions based on the screen it&#8217;s on.</li>
</ul>
<p>Of course, responsive web design has its own challenges, but personally I find it fun and exciting (which leads me to believe that I&#8217;m in the correct profession).</p>
<p>As a quick learning experience, I optimized my personal site (<a href="http://www.kieranchapman.net" target="_blank">kieranchapman.net</a>) for mobile devices using only CSS. The home page normally has a large photo with the latest blog posts overlaid in the top right. This layout works fine on monitors and tablets, but the text was far too small on my iPhone. So now on smaller screens the home page rearranges itself using CSS, displaying a smaller main photo with the blog posts below it.</p>
<p><a rel="prettyPhoto" href="http://kieranchapmandesign.com/wp/wp-content/uploads/2013/01/responsive_kcnet-home.jpg"><img class=" wp-image-643" title="responsive_kcnet-home" src="http://kieranchapmandesign.com/wp/wp-content/uploads/2013/01/responsive_kcnet-home.jpg" alt="" width="100%" height="auto" /></a></p>
<p>The navigation links also have been moved below the logo, and on subpages the sidebar has been moved below the main page content. All of this makes for a much easier reading experience on mobile devices, all easily handled using CSS.</p>
<p><a rel="prettyPhoto" href="http://kieranchapmandesign.com/wp/wp-content/uploads/2013/01/responsive_kcnet-sub.jpg"><img class="alignnone  wp-image-645" title="responsive_kcnet-sub" src="http://kieranchapmandesign.com/wp/wp-content/uploads/2013/01/responsive_kcnet-sub.jpg" alt="" width="100%" height="auto" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kieranchapmandesign.com/2013/01/fun-with-responsive-web-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Your Logo with CSS</title>
		<link>http://kieranchapmandesign.com/2009/10/display-your-logo-with-css/</link>
		<comments>http://kieranchapmandesign.com/2009/10/display-your-logo-with-css/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 14:42:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://kieranchapmandesign.com/?p=261</guid>
		<description><![CDATA[A simple CSS tip to display your logo and keep your code clean and SEO-friendly]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simple tip to use CSS for displaying your website&#8217;s logo (and any image in general). The HTML is about as basic as you can get:</p>
<div class="code">
&lt;h1&gt;&lt;a href=&#8221;/&#8221;&gt;My Great Website&lt;/a&lt;&gt;/h1&gt;
</div>
<p>The CSS to &#8220;hide&#8221; the text and display the logo image instead is pretty simple as well:</p>
<div class="code">
h1 {<br />
	width: 400px;<br />
	height: 100px;<br />
	background: url(/images/logo.gif) top left no-repeat;<br />
}</p>
<p>h1 a {<br />
	text-indent: -300em;<br />
	overflow: hidden;<br />
	float: left;<br />
	width: 400px;<br />
	height: 100px;<br />
}
</p></div>
<p>This styles the text and sets the height and width of the <tt>h1</tt> tag to the size of the logo, and displays the logo as a background image. The <tt>h1&nbsp;a</tt> style hides the text from the user (but not from search engines) by negative indenting the text and basically hiding it off-screen.</p>
<p>The result:</p>
<ul>
<li>very simple HTML code that&#8217;s easily read by search engines (better for SEO)</li>
<li>text that provides a correct representation of the logo (no ALT tag needed)
<li>design elements are kept separate from the code, making future updates easier (the image can be changed simply by modifying the CSS)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kieranchapmandesign.com/2009/10/display-your-logo-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
