<?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>iMore &#187; css</title>
	<atom:link href="http://www.imore.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.imore.com</link>
	<description>More of everything iPhone and iPad</description>
	<lastBuildDate>Sat, 26 May 2012 17:10:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How websites are adapting for the new iPad Retina display and other HiDPI screens</title>
		<link>http://www.imore.com/2012/03/23/websites-adapting-ipad-retina-display-hidpi-screens/</link>
		<comments>http://www.imore.com/2012/03/23/websites-adapting-ipad-retina-display-hidpi-screens/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 02:04:31 +0000</pubDate>
		<dc:creator>Rene Ritchie</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hidpi]]></category>
		<category><![CDATA[retina display]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.imore.com/?p=104488</guid>
		<description><![CDATA[Following the launch of the <a href="http://www.imore.com/ipad">new iPad</a> there's been a lot of discussion about how, and where or even whether, websites should update to support the needs of HiDPI screens like Apple's Retina display. If users are going to be looking at websites on a Retina display iPad, and one day Retina display Macs, HiDPI Android and Windows displays, and other high density screens, having them look as good as possible is a definite concern.]]></description>
			<content:encoded><![CDATA[<p><img src="http://cdn.tipb.com/images/stories//2012/03/retina_hero_2-620x345.jpg" alt="How websites are adapting for the iPad Retina display and other HiDPI screens" title="How websites are adapting for the iPad Retina display and other HiDPI screens" width="620" height="345" class="aligncenter size-medium wp-image-104489" /></p>

<p>Following the launch of the <a href="http://www.imore.com/ipad">new iPad</a> there's been a lot of discussion about how, and where or even whether, websites should update to support the needs of HiDPI screens like Apple's Retina display. If users are going to be looking at websites on a Retina display iPad, and one day Retina display Macs, HiDPI Android and Windows displays, and other high density screens, having them look as good as possible is a definite concern.</p>

<p>Bjango's Marc Edwards previously wrote about why it <a href="http://www.imore.com/2012/02/22/updating-interfaces-ipad-3-favorite-app-retina-display/">might take a while for developers to upgrade their apps for Retina display graphics</a>, and has written several posts and how to <a href="http://bjango.com/articles/designingforretina/">include Retina graphics</a> in <a href="http://bjango.com/articles/exporting/">design workflows</a>. </p>

<p>The web, unfortunately, is nowhere near as controlled environment as the App Store.</p>

<p>Apple, of course, updated their <a href="http://www.apple.com/ipad">iPad page</a> for Retina display right away. According to Jason Grigsby of <a href="http://cloudfour.com/how-apple-com-will-serve-retina-images-to-new-ipads/">Cloud Four Blog</a>, they're doing it with image_replacer.js.</p>

<blockquote>
  <p>What they’ve chose to do is load the regular images for the site and then if the device requesting the page is a new iPad with the retina display, they use javascript to replace the image with a high-res version of it.</p>
</blockquote>

<p>The downside of this approach is that it's expensive, especially if you're serving all images this way, and the images are big. Bandwidth costs money and making every image 4 times larger (or more) means paying higher server bills. Serving a regular image and then switching to Retina is even more expensive, because you're serving both images to Retina devices. (Granted there aren't many yet, but their share will only grow.)</p>

<p>Phil Webb of <a href="http://www.mobify.com/blog/ipad-3-and-retina-screen-what-it-means-for-your-mobile-commerce-site/">Mobify.com</a> offers several good pieces of advice, including prioritizing which images really need to be Retina (like product heroes), that text should be served as text and not images (we're in the age of TypeKit, after all!), creating double-sized images that are constrained by CSS width and height attributes, and the use of mobify.js.</p>

<blockquote>
  <p>Mobify can detect extra-high resolution displays, like the iPad 3 Retina and iPhone 4 and iPhone 4s with Retina, and serve them higher quality images.</p>
  
  <p>And unlike many other techniques, like the approach Apple has taken to delivering Retina-quality images by just double-serving images, it lets you just serve the right image to the right device. So page performance is always as fast and snappy as possible.</p>
</blockquote>

<p>On <a href="http://www.quora.com/CSS3/What-is-the-best-method-for-adding-2x-images-to-webpages-that-will-be-displayed-on-the-new-iPad-with-Retina-graphics">Quora</a>, Read it Later developer Steve Streza promotes the use of CSS background images, the background-size attribute, sprite sheets, and media queries.</p>

<blockquote>
  <p>The big advantage here is that you can target specific screen scale factors with CSS, using a trick known as CSS media queries. This lets you specify entire CSS files, or parts of CSS files, to load for devices at 1x scale, at 2x scale, and other scales (as well as ranges of scales). This means that 1x scale devices are only loading 1x assets, and 2x scale devices are only loading 2x scale assets. </p>
</blockquote>

<p>When it comes to photography on the web, <a href="http://duncandavidson.com/blog/2012/03/photography_on_retina">Duncan Davidson</a>, working with Streza, figured out that WebKit (the rendering engine behind Apple's Safari, Google's Chrome, webOS, BlackBerry's Torch, and other browsers) put limitations on image sizes that could conflict with serving Retina-calibur graphics. The workaround is to use progressive JPGs. But currently comes at a price.</p>

<blockquote>
  <p>Now, before you go reprocessing all your photos—and keep in mind that you can’t export progressive JPEG out of Lightroom or Aperture, so this isn’t an easy undertaking—please understand that this is just sorting out how to push a high DPI image to an iPad Retina display. Doing this well for more than a one-off example is going to take a lot more work, not the least of which is sorting out how to decide when to push a progressive JPEG at what size for the right client and bandwidth combinations. </p>
</blockquote>

<p>So while it's early days and there are no clear standards for implementing cross-platform, cross-browser HiDPI graphics, there's a lot of experimentation being done. We consciously made the choice to use as much CSS as possible with our last iMore redesign, and I think that paid off. We've also replaced our previous, PNG background logo image with a 2x icon graphic and TypeKit text. We need to tweak it some more, but it already looks better on the new iPad. Likewise, we've used higher density Team iMore pictures in the sidebar for a while now, and are going to be rolling out more of them into the rest of the fairly static page elements.</p>

<p>If you're working on adding Retina/HiDPI support to your website, jump into our <a href="http://forums.imore.com/iterate-mobile-design-forum/232166-designing-websites-retina-display-hidpi-screens.html#post1860367">Iterate mobile design forum</a> and let us know how you're doing it and how it's working.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imore.com/2012/03/23/websites-adapting-ipad-retina-display-hidpi-screens/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>iPhone 4 created purely from CSS3 code can slide to unlock and more</title>
		<link>http://www.imore.com/2012/01/04/iphone-4-created-purely-css-3-code-slide-unlock/</link>
		<comments>http://www.imore.com/2012/01/04/iphone-4-created-purely-css-3-code-slide-unlock/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 07:26:44 +0000</pubDate>
		<dc:creator>Chris Oldroyd</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iphone 4]]></category>
		<category><![CDATA[render]]></category>

		<guid isPermaLink="false">http://www.tipb.com/?p=89693</guid>
		<description><![CDATA[HTML5 and CSS expert Vasily Zubach has put together a quite amazing render of an iPhone 4 created solely using CSS3. Because it was created in this manner, it does]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://cdn.androidcentral.com/sites/androidcentral.com/files/imagecache/w550h500/postimages/9685/iphone20420css3.jpg" alt="" width="550" height="386" /></p>

<p></p><p>HTML5 and CSS expert Vasily Zubach has put together a quite amazing render of an iPhone 4 created solely using CSS3. Because it was created in this manner, it does not include any images at all, it is all done with code.</p>
<blockquote><p>This rendering of iPhone 4 and its icons was made in pure CSS3. No images, no base64, no SVG, no canvas, just 3395 lines of CSS code and 335 lines of Javascript code (with jQuery, of course).Viewed best with the latest versions of Safari and Chrome in Mac OS X.</p></blockquote>
<p>You can see what we mean by amazing, when you visit the <a href="http://tjrus.com/iphone">full render here</a>. It is not just a render but it also offers a certain amount of functionality too. You can slide to unlock, click the home button and even turn it on and off using the power button. Very clever work!</p>
<p>Source: <a href="http://thenextweb.com/dd/2012/01/03/this-jaw-dropping-rendering-of-an-iphone-4-was-written-completely-in-css3/">TNW</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imore.com/2012/01/04/iphone-4-created-purely-css-3-code-slide-unlock/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Star Wars Opening Recreated in HTML, CSS!</title>
		<link>http://www.imore.com/2010/01/21/star-wars-opening-iphone-html-css/</link>
		<comments>http://www.imore.com/2010/01/21/star-wars-opening-iphone-html-css/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 16:23:44 +0000</pubDate>
		<dc:creator>Rene Ritchie</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[star wars]]></category>

		<guid isPermaLink="false">http://www.theiphoneblog.com/?p=19545</guid>
		<description><![CDATA[<a href="http://www.imore.com/images/stories/2010/01/photo17.jpg"></a>

Speaking of <a href="http://daringfireball.net/linked/2010/01/20/star-wars-crawl">Daring Fireball</a> links and <a href="http://www.imore.com/tag/html5/">HTML5</a>, <a href="http://blog.gesteves.com/post/261593774/im-done-star-wars-opening-crawl-using-only-html">Guillermo Esteves</a> has re-created the opening crawl from the original Star Wars using only web-based technologies. It currently runs exclusively on the]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.imore.com/images/stories/2010/01/photo17.jpg"><img src="http://www.imore.com/images/stories/2010/01/photo17-400x266.jpg" alt="HTML CSS Star Wars Crawl" title="HTML CSS Star Wars Crawl" width="400" height="266" class="aligncenter size-medium wp-image-19547" /></a></p>

<p>Speaking of <a href="http://daringfireball.net/linked/2010/01/20/star-wars-crawl">Daring Fireball</a> links and <a href="http://www.imore.com/tag/html5/">HTML5</a>, <a href="http://blog.gesteves.com/post/261593774/im-done-star-wars-opening-crawl-using-only-html">Guillermo Esteves</a> has re-created the opening crawl from the original Star Wars using only web-based technologies. It currently runs exclusively on the bleeding-edge WebKit nightly builds, Safari for OS X Snow Leopard... and on the built-in iPhone Safari (though it doesn't look as polished).</p>

<p>That's right. No Chrome anything, including Android 2.1. No Palm webOS browser. That it works on the iPhone's and iPod touch's MobileSafari... is kind of crazy considering it hasn't been updated since iPhone 3.1.2 back on Oct. 8. Just goes to show how seriously Apple is pushing the web on the iPhone.</p>

<p>So, yeah, words moving away into perspective in your browser, but this is without QuickTime or Flash or anything to strain your bandwidth or burn your battery. Very nice.</p>

<p>YouTube video of the WebKit/Safari version after the break!</p>

<p><span id="more-19545"></span></p>

<p align="center"><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/wTbioEQ_FcE&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/wTbioEQ_FcE&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imore.com/2010/01/21/star-wars-opening-iphone-html-css/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>iPhone Browser More Advanced than Desktop for 3D Graphics?</title>
		<link>http://www.imore.com/2009/03/16/iphone-browser-advanced-desktop-3d-graphics/</link>
		<comments>http://www.imore.com/2009/03/16/iphone-browser-advanced-desktop-3d-graphics/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 14:01:06 +0000</pubDate>
		<dc:creator>Rene Ritchie</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[mobile safari]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://www.theiphoneblog.com/?p=7526</guid>
		<description><![CDATA[<a href="http://arstechnica.com/apple/news/2009/03/apple-holding-back-on-web-based-3d-graphics.ars">Ars Technica</a> has a great article up on the future of web design, involving 2D and 3D graphics and transformations, and what's most interesting is that it's the iPhone's Mobile]]></description>
			<content:encoded><![CDATA[<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3576342&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3576342&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object></p>

<p><a href="http://arstechnica.com/apple/news/2009/03/apple-holding-back-on-web-based-3d-graphics.ars">Ars Technica</a> has a great article up on the future of web design, involving 2D and 3D graphics and transformations, and what's most interesting is that it's the iPhone's Mobile Safari browser that right now seems to be leading the way in surfacing this next-gen (Flash killing?) goodness for general users:</p>

<blockquote>
  <p>The WebKit team added CSS Transforms to nightly builds of WebKit back in October 2007, transforms that included scaling, rotation, skewing, and translation in 2D space. As the specification matured, 3D and animation capabilities were added. Eventually, the 3D transforms were broken out into a specification of their own. Though WebKit has had these 3D transform capabilities for some time, only Mobile Safari on the iPhone and iPod touch has them enabled. </p>
</blockquote>

<p>Check out some of the other demos, and get the full scoop, over on <a href="http://arstechnica.com/apple/news/2009/03/apple-holding-back-on-web-based-3d-graphics.ars">Ars</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imore.com/2009/03/16/iphone-browser-advanced-desktop-3d-graphics/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WebKit Tells Flash to Kiss Their Apps: CSS Animation and 3D Already in iPhone Safari Browser</title>
		<link>http://www.imore.com/2009/02/06/webkit-tells-flash-kiss-apps-css-animation-3d-iphone-safari-browser/</link>
		<comments>http://www.imore.com/2009/02/06/webkit-tells-flash-kiss-apps-css-animation-3d-iphone-safari-browser/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 15:50:32 +0000</pubDate>
		<dc:creator>Rene Ritchie</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hatml5]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[surfin safari]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://www.theiphoneblog.com/?p=7030</guid>
		<description><![CDATA[WebKit is Apple's open source evolution of the old Linux Konquerer KHTML browser, and it forms the foundation of Safari on both the desktop and the iPhone (and Google Android,]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.imore.com/images/stories/2009/02/photo.jpg" alt="" title="CSS Animation - Leaves" width="320" height="480" class="aligncenter size-full wp-image-7031" /></p>

<p>WebKit is Apple's open source evolution of the old Linux Konquerer KHTML browser, and it forms the foundation of Safari on both the desktop and the iPhone (and Google Android, Palm Pre, Nokia tablets, etc.). Their <a href="http://webkit.org/blog/324/css-animation-2/">Surfin' Safari blog</a> has just announced CSS animation support, but the better news (via <a href="http://www.macrumors.com/2009/02/06/css-animation-coming-to-safari-already-in-iphone-less-dependence-on-flash/">MacRumors</a>), is that iPhone (and iPod touch) Safari <em>already supports</em> both CSS animation and 3D.</p>

<p>Want to check it out? Just hit up this awesome <a href="http://webkit.org/blog-files/leaves/index.html">animated falling leaf demo</a> on your iPhone!</p>

<p>Overly provocative headline not withstanding, and while this doesn't address the ubiquity of <a href="http://tipb.com/tag/flash">Flash</a> video, it should go a long way towards enabling more scalable and open interactivity on the web. (Flash sites don't always scale well to small screens, after all).</p>

<p>Okay, I'm a web geek, I admit it, but is anyone else excited? Or do we just fear that it will all-too-quickly be perverted into iPhone optimized punch-the-monkey banner ads?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imore.com/2009/02/06/webkit-tells-flash-kiss-apps-css-animation-3d-iphone-safari-browser/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Safari 4 to Take Aim at Flash, Beef up Web 2.0 Apps</title>
		<link>http://www.imore.com/2008/06/11/safari-4-to-take-aim-at-flash-beef-up-web-20-apps/</link>
		<comments>http://www.imore.com/2008/06/11/safari-4-to-take-aim-at-flash-beef-up-web-20-apps/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 18:55:32 +0000</pubDate>
		<dc:creator>Rene Ritchie</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[mobilesafari]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[safari 4]]></category>

		<guid isPermaLink="false">http://www.theiphoneblog.com/?p=2761</guid>
		<description><![CDATA[Hot on the heels of the <a href="http://www.imore.com/2008/03/18/apple-releases-safari-31-mobilesafari-touch-next/">just released Safari 3.1</a>, some of whose features are reportedly trickling down to baby brother MobileSafari on the iPhone 2.0 firmware, Apple has]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.imore.com/images/stories/2008/06/iphone_safari.jpg" alt="Apple seeds Safari 4" title="Apple seeds Safari 4" width="347" height="200" class="aligncenter size-full wp-image-2762" /></p>

<p>Hot on the heels of the <a href="http://www.imore.com/2008/03/18/apple-releases-safari-31-mobilesafari-touch-next/">just released Safari 3.1</a>, some of whose features are reportedly trickling down to baby brother MobileSafari on the iPhone 2.0 firmware, Apple has reportedly begun seeding early builds of Safari 4 (5526.11.2) to developers.</p>

<p>The big news? WebKit's screaming fast SquirelFish Javascript engine is a go, and 53% faster, which will be huge for Web 2.0 apps like Google's... and the newly announced <a href="http://www.imore.com/2008/06/09/apple-launches-mobileme-activesync-web-20-apps-for-the-rest-of-us/">MobileMe</a> service from Apple, of course!</p>

<p>Other new features include the ability to spin off "Site Specific Browsers" (or SSBs), which are basically thin browser clients for your favorite Web 2.0 apps -- imagine a dedicate window on your desktop just for MobileMe. Continued CSS attribute additions like gradients, masks, and reflections are also on spec (Gee, gradients and reflections? From Apple? What a surprise...)</p>

<p>Combined with the CSS and HTML 5.0 features already added in 3.1, such as animation, video, and audio tags, Apple seems to be retaining its focus on open, web standard interactivity, in conjunction with <a href="http://www.imore.com/2008/03/25/being-played-flash-music-and-manipulation-wait-a-thon/">old nemesis Flash</a> and similar -- <a href="http://www.imore.com/2008/04/21/flash-and-silverlight-to-make-mobilesafari-crashier/">sometimes buggy</a> -- technologies like Silverlight on the desktop (for now), and in lieu of them on the iPhone. Add in QuickTime X, and Apple is definitely trying to leverage some space away from the current, <a href="http://www.imore.com/2008/05/03/adobe-to-make-flash-more-open-apple-to-care/">pseudo-proprietary web video</a> giants.</p>

<p>While <a href="http://www.imore.com/2008/06/10/apple-gives-first-hints-of-os-x-106-snow-leopard/">OS 10.6 Snow Leopard</a> isn't expected until mid-2009, Safari 4 seems on the fast track for a much sooner release. </p>

<p>Can another MobileSafari bump for the iPhone be far behind?</p>

<p class="read"><a href="http://www.macrumors.com/2008/06/10/apple-seeds-safari-4-to-developers/">Read</a> <span class="via"><a href="http://arstechnica.com/journals/apple.ars/2008/06/10/safari-4-to-include-ssb-feature-and-fastest-javascript-ever">Via</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imore.com/2008/06/11/safari-4-to-take-aim-at-flash-beef-up-web-20-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

