<?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>greenideas &#187; mobile</title>
	<atom:link href="http://mwhenry.com/blog/tag/mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://mwhenry.com/blog</link>
	<description>A blog by Matt Henry</description>
	<lastBuildDate>Fri, 02 Jul 2010 23:26:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Responsive Web Design for Mobile</title>
		<link>http://mwhenry.com/blog/2010/07/responsive-web-design-for-mobile/</link>
		<comments>http://mwhenry.com/blog/2010/07/responsive-web-design-for-mobile/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 22:36:32 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[responsive]]></category>

		<guid isPermaLink="false">http://mwhenry.com/blog/?p=124</guid>
		<description><![CDATA[Responsive web design is undeniably the new hotness in CSS. If you’re not familiar with the technique, go and read Ethan Marcotte’s amazing article over on A List Apart. What Marcotte has created is a way to create one design that adapts to different resolutions using media queries. There are countless advantages to building sites [...]]]></description>
			<content:encoded><![CDATA[<p>Responsive web design is undeniably the new hotness in CSS. If you’re not familiar with the technique, go and read <a href="http://www.alistapart.com/articles/responsive-web-design/">Ethan Marcotte’s amazing article</a> over on <i>A List Apart</i>. What Marcotte has created is a way to create one design that adapts to different resolutions using <a href="http://www.w3.org/TR/css3-mediaqueries/">media queries</a>.</p>
<p>There are countless advantages to building sites in this way, but arguably the most compelling reason is the ability to share one layout across both desktop and mobile browsers. However, if you’re new to mobile development there are a couple of tricks you’ll need to use in order to make this work. It wasn’t really in the scope of Marcotte’s article to cover the mobile-specific aspects of his technique, so I figured a quick post was in order to fill in the gaps.</p>
<p>The example site we’ll be looking at is a hypothetical site for foodies called <a href="http://mwhenry.com/blog/examples/forkd/">Fork’d</a>. When you look at it in a normal sized desktop browser, It’s got a vertical navigation list and three columns of content. If you resize the window to be a fair bit narrower, you’ll see that the floats disappear, and the navigation as well as all of the content is lined up in a single column. This is the layout we want our mobile users to see. However, what they’re actually going to see is this:</p>
<p><img src="http://mwhenry.com/blog/images/forkd_iphone_tiny.jpg" alt="the site renders very small" style="border:1px solid #ccc" /></p>
<p>Fortunately, we just need a tiny sprinkling of pixie dust to make this work the way we expect it to. We’ll just add this meta tag to our page:</p>
<pre class="code">
<code class="html">
&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
</code>
</pre>
<p>(For way more info on viewports, check out <a href="http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/usingtheviewport/usingtheviewport.html">Apple’s documentation on the subject</a>.)</p>
<p>Once we put that in place, the Fork’d site renders like this:</p>
<p><img src="http://mwhenry.com/blog/images/forkd_iphone.jpg" alt="the site renders at the correct resolution" style="border:1px solid #ccc" /></p>
<p>Perfect! We now have one layout that works across different desktop screen resolutions as well as (high-end) mobile devices, and the only extra trick we had to employ was to add a single meta tag.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2010/07/responsive-web-design-for-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shiny CSS-only iPhone Buttons</title>
		<link>http://mwhenry.com/blog/2009/11/shiny-css-only-iphone-buttons/</link>
		<comments>http://mwhenry.com/blog/2009/11/shiny-css-only-iphone-buttons/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 19:24:50 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://mwhenry.com/blog/?p=80</guid>
		<description><![CDATA[Just a quickie: I came up with these CSS-only iPhone-style buttons as part of a bigger pet project I’m working on. They make heavy use of -webkit-gradient instead of the typical PNG-based solution you typically see out there, such as in iUI. The CSS is here, and be sure to check out the example buttons. [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quickie: I came up with these CSS-only iPhone-style buttons as part of a bigger pet project I’m working on. They make heavy use of <code>-webkit-gradient</code> instead of the typical PNG-based solution you typically see out there, such as in iUI.</p>
<p>The CSS is <a href="/blog/examples/iphone_buttons/styles/ui.css">here</a>, and be sure to check out the <a href="/blog/examples/iphone_buttons/">example buttons</a>.</p>
<p>The one thing I’m not crazy about when you use these styles on an actual device is that the normal <code>:active</code> state doesn’t get triggered, so I kind of had to half-ass it with a <code>:hover</code> so you’d see the “active” style as the button sheet eases out (if you’ve wired the transitions together).</p>
<p>Enjoy, and please let me know if you find them useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/11/shiny-css-only-iphone-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
