We’ve all been there – that moment when you see your wonderful layout ending up with fugly default browser styling. If only all browsers would adopt the same styling for our dear HTML elements and let us add sparkles and colors. Ok, maybe not sparkles but at least style that darn dropdown. And please don’t get me started on mobile.
For one project I worked on, the only option I had was to not use <select> for the dropdown but style a list <ul> instead and make it look like the styled dropdown the client wanted – This is the dropdown code using a <select> as we all know –
<select> <option>Gummi Bears</option> <option>Tiramisu</option> <option>Carrot Cake</option> <option>Chocolate</option> <option>Jelly Beans</option> <option>Cotton Candy</option> <option>Marzipan</option> <option>Lollipop</option> <option>Fruitcake</option> <option>Donut</option> </select>
First, let’s break down what are the parts of this module we’re creating. This will help us figure out what we’re dealing with as were transforming a simple list to a <select> dropdown and then adding some nice styling.
A simple list:
Select your favorite
Select your favorite <ul> <li>Gummi Bears</li> <li>Tiramisu</li> <li>Carrot Cake</li> <li>Chocolate</li> <li>Jelly Beans</li> <li>Cotton Candy</li> <li>Marzipan</li> <li>Lollipop</li> <li>Fruitcake</li> <li>Donut</li> </ul>
This August, Cultures in Harmony (CiH) musicians from the United States will be coming to the Philippines to partner with Cartwheel Foundation, Inc. (CFI) yet again, building on the legacy of a strong partnership dating back to 2006. A series of learning exchange workshops between CiH and Tagbanua musicians will be facilitated from August 13-17
I’ve signed up for Code School way back and had tried their free courses (or those videos that I could access free). I love their lessons! I got a Hall Pass from them previously so I continued the courses that I had started. The hall pass is just for 48 hours so I’m going to make it worth it.
Availing the Hall Pass let me share the love, too. Click the image below to earn your own Hall Pass, which also lets me extend my Hall Pass! Thank you!
How RYOT & Incubus Teamed Up To Help The Philippines – RYOT and Incubus’ Make Yourself Foundation teamed up to raise money for the Typhoon Haiyan victims in the Philippines. I am so proud to be an Incubus fan! Thank you Incubus!