Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering CSS

You're reading from   Mastering CSS A guided journey through modern CSS

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781787281585
Length 522 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Rich Finelli Rich Finelli
Author Profile Icon Rich Finelli
Rich Finelli
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. CSS Foundations FREE CHAPTER 2. Ramping Up 3. Creating a Page Layout with Floats 4. Creating Buttons with Modular, Reusable CSS Classes, and CSS3 5. Creating the Main Navigation and Drop-Down Menu 6. Becoming Responsive 7. Web Fonts 8. Workflow for HiDPI Devices 9. Flexbox, Part 1 10. Flexbox, Part 2 11. Wrapping Up

Mobile menu

So far in this chapter, you've learned about Ethan Marcotte's three fundamentals of responsive web design – fluid grids, flexible images that squish, and media queries. That's kind of the easy part in a way. The hard part is figuring out the multitude of tricky design challenges; for example, what to do with our menu on a mobile, especially as we decide to add more menus. Luckily, this is the one area where a decent design pattern has emerged. We are going to forgo the horizontal menu that shows each button on the nav in lieu of a hidden menu that is activated by a click or touch. Upon being clicked or touched, the hidden menu will slide down vertically and show all the menu choices. We'll achieve this by styling the mobile nav in its open state. Then, we'll hide the nav and add in the menu icon that triggers the mobile menu to open...

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 $19.99/month. Cancel anytime
Banner background image