Contents

About the Author

About the Technical Reviewer

Acknowledgments

Introduction

images Chapter 1: The Basics of Responsive Web Design

Is This for Developers?

Getting Started

Losing that Fixed Fixation

A Flexible Layout

Flexible Content

CSS Media Queries

The Viewport Meta Tag

Summary

images Chapter 2: CSS Layout Bootcamp

First Steps

The Basic Rules

Display: Block, Inline, and Inline Block

Floats

Calculating Width

Laying Out a Page in CSS

Creating a Page with a Sidebar

Creating a Horizontal Menu in CSS

Summary

images Chapter 3: Flexible Layouts

Setting up a New Responsive ASP.NET MVC Site

Revisiting the Three-Column Layout

Making Our Three-Column Layout Flexible

Creating Space

Adding Borders

What about Older Browsers?

A Two-Column Layout

A Ten-Column Layout with Header and Footer

Summary

images Chapter 4: Flexible Navigation

Making the Horizontal Menu Vertical

Moving the Menu to the Bottom

Turning the Menu into a Select

Creating Accordion-Style Navigation at the Top

Creating Off-Canvas Flyout Navigation

Summary

images Chapter 5: Flexible Content

Flexible Text

Em

Rem

Line Height

Responsive Text

Flexible Tables

Plain Tables

Scrolling Table

De-table the Table

FooTable

Flexible Video

HTML5 Video

Embedding Video

Flexible Images

The Problems

Solving for Image Size

Solving for Resolution and Bandwidth

Summary

images Chapter 6: Display Modes, View Engines, and Html Helpers

Mobile Views

Step 1: Create an Empty ASP.NET MVC 4 or 5 Site

Step 2: Create the HomeController

Step 3: Create the View

Step 4: Create a Layout

Step 5: Create the CSS and JavaScript

Step 6: Create our Mobile Overrides

DisplayModes

Setting Up a Windows Phone 8 DisplayMode

Custom View Engine

Adding A/B Testing

HtmlHelpers

Summary

images Chapter 7: Device and Feature Detection

Device Detection

Parsing User Agent Strings with WURFL

Abstracting WURFL

Feature Detection

Practical Feature Detection

Device Detection versus Feature Detection

Summary

images Chapter 8: Mobile Performance

Tools

The Chrome Developer Tools

Fiddler

Performance Techniques

Always Reduce the Number of HTTP Requests as Much as Possible

Always Use Gzip Compression

Always Combine and Minify CSS and JavaScript

Always Cache Client-Side When Possible

Always Optimize where CSS and Scripts are Included in the Page

Consider Using CSS Sprites

Always Optimize Your Images

Consider Using a Content Delivery Network

Summary

images Chapter 9: Native APIs, HTML5, and CSS3 on Mobile Today

Native Phone APIs

Geolocation

Photo Upload

Network Info API

Phone Calls and E-mail

Accessing Maps

New Capabilities

Web Sockets

Web Storage

Offline Web Applications

Web Workers

History API

Audio and Video

Better Semantics

Visual Tools

Web Fonts

Transitions

Animations

Transformations

Gradients

Shadows

Border Radius

Opacity and RGBA

Multiple Backgrounds

Canvas

SVG

Summary

images Chapter 10: Programming for Touch

The Browser Touch APIs

Click Events

Mouse* Direction Events

Touch* Events

Gesture* Events

Pointer* Events

MSGesture* Events

Gesture and Rotation Differences

Touch Location

Touch Screens, Touch Events, and Default Behavior

Building a Simple Touch Sample

Creating a Page

Drawing

Starting Implementation Using Mouse Events

Starting Implementation Using Touch Events

Starting Implementation Using Pointer Events

Improving Our Implementation

Capturing Handwriting

Summary

images Chapter 11: Advanced Touch Programming

Creating Custom Events

Creating a Gesture

Making a Swipeable Image Widget

Scaling, Rotating and Moving Things

Getting Started

Normalizing the Touch Methods

Moving

Resizing

Rotation

Summary

images Chapter 12: Useful Libraries for Mobile

Responsive Libraries

Bootstrap

Zurb Foundation

FitText

FlowType.js

Enquire.js

Respond

PictureFill

Touch Libraries

Swipeview

Hammer.js

Hand.js

Device/Feature-Detection Libraries

WURFL

Modernizr

Mobile Application Frameworks

jQuery Mobile

Sencha Touch

Kendo UI Mobile

Summary

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.118.229