Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Responsive Web Design with HTML5 and CSS - Fourth Edition

You're reading from  Responsive Web Design with HTML5 and CSS - Fourth Edition

Product type Book
Published in Sep 2022
Publisher Packt
ISBN-13 9781803242712
Pages 498 pages
Edition 4th Edition
Languages
Author (1):
Ben Frain Ben Frain
Profile icon Ben Frain

Table of Contents (21) Chapters

Preface 1. Section I: The Fundamentals of Responsive Web Design
2. The Essentials of Responsive Web Design 3. Writing HTML Markup 4. Media Queries and Container Queries 5. Fluid Layout and Flexbox 6. Layout with CSS Grid 7. Section II: Core Skills for Effective Front-End Web Development
8. CSS Selectors, Typography, and More 9. CSS Color 10. Stunning Aesthetics with CSS 11. Responsive Images 12. SVG 13. Transitions, Transformations, and Animations 14. Custom Properties and CSS Functions 15. Forms 16. Section III: Latest Platform Features and Parting Advice
17. Cutting-Edge CSS Features 18. Bonus Techniques and Parting Advice 19. Other Books You May Enjoy
20. Index

mix-blend-mode

One final, very visual, property I want to relate before we end this chapter is mix-blend-mode. This property lets you decide how you want one element to “blend” with the element it sits on top of.

Here are the possible blend modes: normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color, and luminosity.

Static images don’t really do this property justice, so I’d encourage you to open example_08-12 in a browser. We’re using that same image of Mars from the last example but setting it as a fixed background for the body element.

Then, we add some text on top that you can scroll to see mix-blend-mode in effect. In this example, we have used overlay, for no reason other than I thought it worked best. If you open the example along with your developer tools, you can cycle through the other possibilities. It’s perhaps redundant to...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}