tubeshowcase●913,443 videos♡ My collection 0
← Learn to Code

Learn to Code17:40

Custom select menu - CSS only

Kevin Powell ↗

From the creator

Check out Scrimba's new career path: https://scrimba.com/path/gfrontend?utm_campaign=kevinpowell_launch Also, a big thank you to David Lower who gave me the idea for this video! You can check out his site at https://squirrelwise.com/ // Timestamps // 00:00 - Intro 02:02 - The HTML 03:03 - Starting the CSS 05:14 - Setting up the custom button 08:05 - pointer-events none 09:30 - Fixing the size 11:11 - The custom icons 16:37 - Outro Customizing form elements can be one of the hardest things to do with CSS, with select menus being the worst of the bunch. Instead of creating a completely new element with a pile of divs and a bunch of JS, there are ways to customize select menus though! It doesn't give you 100% control, but you can go pretty far with a couple of pseudo-elements and the use of pointer-events: none - read more about pointer events here: https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events -- Come hang out with other dev's in my Discord Community 💬 https://discord.gg/nTYCvrK --- Keep up to date with everything I'm up to ✉ https://www.kevinpowell.co/newsletter --- Help support my channel 👨‍🎓 Get a course: https://www.kevinpowell.co/courses 👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awesome 💖 Support me on Patreon: https://www.patreon.com/kevinpowell --- My editor: VS Code - https://code.visualstudio.com/ --- I'm on some other places on the internet too! If you'd like a behind the scenes and previe

Published 2020-07-22 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code