To create web designs that delight, entertain, and impress your users, you need to know CSS in depth!
Getting good—really good—at CSS means learning everything that CSS is capable of. This totally revised new edition of CSS in Depth expands your CSS skills with the patterns, layouts, and methods you need to deliver truly beautiful front ends.
In CSS in Depth, Second Edition you will learn how to:
• Create a web page with layout methods
• Develop essential website components, like dropdown menus and dialog boxes
• Make your website fully responsive across devices
• Organize your CSS for easy future maintenance
• Implement designer mockups with attention to detail
• Use animations to guide user focus
• Avoid common CSS pitfalls
The more you know about CSS, the more confident you’ll be at tackling any tricky website design! CSS in Depth has given thousands of web developers the tools and the inspiration to make sites that really pop. This second edition is packed with the latest best practices, new CSS language features, and essential advice on how to organize and maintain your CSS codebase.
Foreword by Chris Coyier.
About the technology
To deliver truly beautiful frontends, you need to know CSS inside and out. And as CSS grows and matures, even experienced CSS developers will find a whole new set of skills to catch up on! This guide will help you discover everything that CSS is capable of—from the must-knows and brand-new features to the hidden insights you won’t find anywhere else!
About the book
CSS in Depth, Second Edition, deep dives into the CSS techniques used by the world’s most skilled web developers. Inside, you’ll learn how to build and organize a modular CSS codebase that’s easy to understand, maintain, and reuse. This new edition is fully revised to cover the CSS standard’s latest additions, including cascade layers, logical properties, new color functions, subgrid, and container queries.
What's inside
• Vertical centering, margin collapsing, and positioning
• Dropdown menus and modal dialog boxes
• Animations to guide user focus
• Avoiding common CSS pitfalls
About the reader
Written for web developers who know the basics of CSS and HTML.
About the author
Keith J. Grant is a Principal Software Engineer at Red Hat, where he works on front-end code for the Ansible Controller web application using JavaScript and CSS.
The technical editor on this book was Chris Chinchilla.
Table of Contents
PART 1
1 Cascade, specificity, and inheritance
2 Working with relative units
3 Document flow and the box model
PART 2
4 Flexbox
5 Grid layout
6 Positioning and stacking contexts
7 Responsive design
PART 3
8 Cascade layers and nesting
9 Modular CSS and scope
10 Container queries
PART 4
11 Color and contrast
12 Typography and spacing
13 Gradients, shadows, and blend modes
14 Masks, shapes, and clipping
PART 5
15 Transitions
16 Transforms
17 Animations
APPENDIXES
A Selectors reference
B Preprocessors

- 544 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
CSS in Depth, Second Edition
About this book
Trusted by 375,005 students
Access to over 1 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Subtopic
Programming in HTMLIndex
Computer ScienceTable of contents
- Praise for the first edition
- CSS in Depth, Second Edition
- copyright
- contents
- foreword
- preface
- acknowledgments
- about this book
- about the author
- about the cover illustration
- Part 1 Reviewing the fundamentals
- 1 Cascade, specificity, and inheritance
- 2 Working with relative units
- 3 Document flow and the box model
- Part 2 Mastering layout
- 4 Flexbox
- 5 Grid layout
- 6 Positioning and stacking contexts
- 7 Responsive design
- Part 3 Modern code organization
- 8 Cascade layers and nesting
- 9 Modular CSS and scope
- 10 Container queries
- Part 4 Visual enhancements
- 11 Color and contrast
- 12 Typography and spacing
- 13 Gradients, shadows, and blend modes
- 14 Masks, shapes, and clipping
- Part 5 Adding motion
- 15 Transitions
- 16 Transforms
- 17 Animations
- appendix A Selectors reference
- appendix B Preprocessors
- index
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access CSS in Depth, Second Edition by Keith J. Grant in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in HTML. We have over one million books available in our catalogue for you to explore.