Book Image

Mastering CSS

By : Rich Finelli
Book Image

Mastering CSS

By: Rich Finelli

Overview of this book

Rich Finelli trains you in CSS deep learning and shows you the techniques you need to work in the world of responsive, feature-rich web applications. Based on his bestselling Mastering CSS training video, you can now learn with Rich in this book! Rich shares with you his skills in creating advanced layouts, and the critical CSS insights you need for responsive web designs, fonts, transitions, animations, and using flexbox. Rich begins your CSS training with a review of CSS best practices, such as using a good text editor to automate your authoring and setting up a CSS baseline. You then move on to create a responsive layout making use of floats and stylable drop-down menus, with Rich guiding you toward a modular-organized approach to CSS. Your training with Rich Finelli then dives into detail about working with CSS and the best solutions to make your websites work. You'll go with him into CSS3 properties, transforms, transitions, and animations. You’ll gain his understanding of responsive web designs, web fonts, icon fonts, and the techniques used to support retina devices. Rich expands your knowledge of CSS so you can master one of the most valuable tools in modern web design.
Table of Contents (12 chapters)

Background images

In order to handle background images, we can use a special media query to determine the pixel ratio and then modify the background property to serve up the retina image. In this section, we'll determine how we can account for background images in the sphere of retina. We'll first create a media query designed for determining the pixel ratio. Then, we'll update the image being served to be the retina version. The seaweed in the footer is a background image, and thus will be the perfect image for this task.

Targeting the seaweed in the footer

Here is the seaweed just above the footer on the movies page:

If we look at the CSS, all that's happening is that the footer has a repeating background...