Free Sample
+ Collection

Instant Website Optimization for Retina Displays How-to

Kyle J. Larson

Learning simple techniques which will make your website look stunning on high-definition Retina Displays
RRP $12.99

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849695121
Paperback56 pages

About This Book


  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Create high-resolution graphics for websites
  • Learn to create scalable graphics using CSS, SVG, and Canvas
  • Embed fonts from the web for creating unique typography and graphics
  • Learn how to add high-resolution icons and startup images to your web apps
  • Implement scripting techniques to replace your images with high-resolution versions


Who This Book Is For

This book is for web designers and developers who are familiar with HTML, CSS, and editing graphics who would like to improve their existing website or their next web project with high-resolution images. You’ll need to have a high-definition device to be able to test the examples in this book and a server to upload your code to if you’re not developing it on that device.

Table of Contents

Chapter 1: Instant Website Optimization for Retina Displays How-to
Creating your first Retina image (Must know)
Retina background images (Must know)
Optimizing (Must know)
Creating image sprites (Should know)
CSS border images (Should know)
CSS media queries (Should know)
CSS image-set (Become an expert)
Using code instead of images (Must know)
Embedding fonts (Should know)
Fonts as icons (Should know)
High-resolution web apps (Should know)
Scalable Vector Graphics (Become an expert)
Canvas (Become an expert)
Pixel ratio detection with JavaScript (Become an expert)
Server-side Retina solutions (Become an expert)

What You Will Learn


  • Create retina images, backgrounds, and borders
  • Use CSS to create shapes and buttons for user interfaces
  • Design retina image sprites to speed up your site
  • Embed unique fonts and use them as graphics
  • Make your web apps high-resolution with icons and startup images
  • Use JavaScript and PHP to detect retina displays and target them
  • Create resolution independent images using SVG
  • Use media queries and the image-set property to provide multiple versions of your images


In Detail

Apple launched its line of high-resolution, retina display products with the iPhone 4 and has continued to integrate the technology into its other products. These beautiful displays take computing to a new level with incredibly sharp text and graphics. As other manufacturers add similar displays to their devices, high-resolution graphics will become the new standard for the apps and websites of the future.

"Instant Website Optimization for Retina Displays How-to" is a comprehensive guide to building a website that will look fantastic on high-resolution displays. Helpful insights and simple instructions walk you through all the various methods of optimizing your site for the latest mobile and desktop devices.

This book begins by covering the basics of retina images and dives right into practical advice so you can start improving your website’s images. It continues building on the basic techniques with simple recipes covering all the tools you’ll need to make an impressive high-resolution website.

We will take a look at the techniques for adding retina backgrounds, sprites, border images, and loading large images only when needed to keep your website running fast. We will create a variety of basic shapes and styles using CSS that can be used instead of graphics in your user interface. We’ll cover scalable image techniques, including using fonts as icons and implementing Scalable Vector Graphics (SVG), which make your graphics look great on any device.

After reading "Instant Website Optimization for Retina Displays How-to" you’ll have the techniques to make creating high-definition websites easy. You’ll have an arsenal of tools for creating graphics on the web at your disposal, leading to superior websites that are beautiful and fast.


Read More