Book Image

Mobile First Design with HTML5 and CSS3

By : Jason Gonzales
Book Image

Mobile First Design with HTML5 and CSS3

By: Jason Gonzales

Overview of this book

<p>The mobile first design philosophy aims to develop websites that will be lean and fast on small screens without sacrificing a tablet or desktop experience. Using HTML5, CSS3, and simple, standardized modern web tools you can make one site to rule them all.</p> <p>Mobile First Design with HTML5 and CSS3 will teach you the tools you need to make a modern, standards-based web page that displays beautifully on nearly any web browser—essential knowledge for anyone who makes websites!</p> <p>In this book, you will learn how to set up a project from scratch and quickly get up and running with a full portfolio website that will form the base for making almost any kind of web page. Learn to develop web pages that fit the web conventions we all have to conform to. You will learn how to make responsive image slideshows; image galleries with detail pages; and bold, eye-catching banners and forms. Best of all, you will learn how to make these things fast without compromising quality.</p> <p>This book will walk you through the process step by step with all the code required, as well as the thinking that goes behind planning a mobile first responsive website.</p>
Table of Contents (14 chapters)

Creating the wireframe


Before we jump into the code, let's take a look at some wireframes. The following screenshot shows how our screen should look on a small screen:

As the browser gets wider, we'd like those images to get bigger and change the layout from stacking to tiling for better use of the screen space. The following screenshot is the basic layout of a screen over 992 px wide:

There are a lot of visual breakpoints between the two that I have created above that 320 and Up facilitates. The only thing to keep in mind with 320 and Up is how to keep the rest of your page consistent with it. As we go along here, let's analyze what the layout is doing and get the rest of our page to play nice with it by either using styles that already exist in 320 and Up or creating our own.

The way I would create a Gallery page for myself is with some kind of hero at the top of the page, but not a slideshow. I feel it's important to orient users with a simple, bold statement at the top of most pages for...