Skip to main content

Simple Cross-Browser Trick for Placeholders

by Ian Ebden in ,

Mark up your form – labels and all – and let Modernizr do the rest. Modernizr will add the .csstransitions class for modern browsers, which will then hide the labels. Internet Explorer and older browsers will still show your labels. Future versions of Internet Explorer are likely to support CSS transitions and placeholder, so everyone is happy.


Thanks for reading



Craft CMS Support Plans

Our support plans are ideal for Craft CMS sites that need regular updates, improvements, and someone technical keeping an eye on things.

12 years Craft experience Regular Craft and plugin updates Custom plugin development Cloud hosting Backups and 24/7 monitoring Performance audits Technical SEO Pre-booked dev time Troubleshooting

We should talk

Tell us about what you’ve got, what’s not working, and where you want to get to.

Make Contact No recruitment agencies please.