August 15, 201214 yr Hi all! I'm javascript noob and I have one issue. It's possible style the select and option tag with css & javascript? (Like a DeviantART: http://img545.imageshack.us/img545/3756/ec80b7a46ddf404a831184c.png but with one difference - with select & option tags, not span or divs).
August 15, 201214 yr You can style input and select boxes with CSS just like any other element. Here are some examples http://www.456bereas..._form_controls/ http://gutfeldt.ch/m...orms/index.html input { background: red; } select { border: 1px solid black; } Edited August 15, 201214 yr by Wickham
August 15, 201214 yr Author Yes, beacause I can't style it enough (only partially). So, are you able style the option & select tags, how it's for example on deviantart? If yes, please send a code here. Because everything what i found be solved by DIVs and SPANs.
August 15, 201214 yr There isn't a way to style pulldowns consistently across browsers and platforms. There will always be slight differences, especially when you get to OSX/mobile devices. You'll have to do some kind of replacement like: http://harvesthq.github.com/chosen/ Or just deal with the differences in the native controls. It's a huge pain to redesign them (and if you mess it up your users will hate you) but it's worth it if you can provide an excellent user experience across all devices.
August 15, 201214 yr You'll have to do some kind of replacement like: http://harvesthq.github.com/chosen/ Awesome plugin... I have been looking for something like this +1
August 16, 201214 yr Or just deal with the differences in the native controls. It's a huge pain to redesign them (and if you mess it up your users will hate you) but it's worth it if you can provide an excellent user experience across all devices. Embrace the differences! In trying to provide a consistent user experience across all browsers, be aware that you are also breaking the consistent user experience provided by users browser of choice. Think very carefully before doing this, and be very careful about how you do it. As Porkchops rightly points out, do it wrong and your users will hate you for it.
Create an account or sign in to comment