Modern browsers means advanced users

Today I wrote this bit of code which I was quite pleased with:

input[type=submit]{display:none;}

This is targeting the sign up button on an email subscription form. Not every browser will understand this, so IE6 for example will just ignore it. For my purposes this is fine. My logic is that people on IE6 probably need the submit button anyway, whereas those who use more modern browsers which will understand this declaration will also be familiar with the fact that hitting enter will submit their form. An unusual approach to progressive enhancement maybe, but it made me happy…

Posted in CSS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s