Styling a form is never an easy thing to do, but adding CSS3 on a HTML5 form is a task that shows a large variety of results when it comes to testing on different browsers. Check the test link.
When it comes to CSS3 not much can be done: but adding rounded corners, gradients and dropshadows is still more than nothing anf the overall aspect of the form is waaaaaaaaay better. But HTML5 is supported by few browsers (this HTML form only by Opera) and CSS3 also by few broswers – but different from the one supporting HTML5.
The result: impossible to see the result on one browser only: the rounded corners can be seen on Mozilla/Chrome/Safari and the HTML5 elements on Opera.
Internet Explorer? Better don’t ask. No support whatsoever.
So the results:
- Mozilla 3: rounded corners + / HTML 5 elements
- Chrome: rounded corners + (they look weird) / HTML 5 elements -
- Safari: rounded corners + / HTML 5 elements -
- Opera 9: rounded corners – / HTML 5 elements +
- IE (doesn’t matter which one): rounded corners – / HTML 5 elements -
Ric Ferrer sent us a screenshot with the behavior of Mobile Safari from his Ipod. Thank you
Check the Spanish version of this post:
Usando CSS3 para dar estilo a formularios escritos en HTML5