Book Image

Beginning Responsive Web Development with HTML and CSS

By : Joshua Miller
Book Image

Beginning Responsive Web Development with HTML and CSS

By: Joshua Miller

Overview of this book

With this course, you can build websites that will transform the user experience. This course begins with the latest techniques provided by HTML5 and CSS3. Along the way, you'll discover tips and tricks that make your future designs and development workflow leaner and more maintainable than ever before. By the time you reach the end, you'll be equipped with the latest cutting edge front- end development skills, ready to develop your very own modern, responsive websites that are pixel-perfect across a wide range of devices. The code files are available at: https://github.com/TrainingByPackt/Beginning-Responsive-Web-Development-with-HTML-and-CSS
Table of Contents (9 chapters)
Chapter 5
CSS3 – Selectors, Typography, and Color Modes
Content Locked
Section 4
Facilitating Feature Forks in CSS
When you're building a responsive web design, attempting to provide a single design that works everywhere, on every device, it's a simple fact that you'll frequently encounter situations when features or techniques are not supported on certain devices. In those instances, you'll likely want to create a fork in your CSS: if the browser supports a feature, provide one chunk of code; if it doesn't, it gets different code. It's the kind of situation that gets handled by if…else or switch statements in JavaScript. We currently have two possible approaches. One is entirely CSS-based but with fewer browser implementations, and the other is only made possible with the help of a JavaScript library but enjoys far broader support. Let's consider each in turn. This video covers: - Demo on Featuring Queries - Demo on Combining Conditionals - Modernizr - Demo on Feature Detection with Modernizr