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)

Why?


Why do we need something to preprocess CSS? Here are a few simple reasons:

  • There are no variables in CSS

  • When styling nested elements, your code will not be DRY, that is, you will type a lot of classes and/or IDs repeatedly

  • It isn't convenient to re-use code in CSS, so you end up with code that isn't DRY

  • There is no logic at all to CSS

  • Preprocessors allow us to manipulate color relationships in a dynamic way rather than statically assigning all color values; this is especially powerful when coupled with the ability to use variables

These are broad explanations. This appendix, and essentially this whole book should give you lots of detailed examples of when these are useful.