richardoneill.com.au » Articles » Designing Login Forms

Designing Login Forms

18 July 2007 Web Design, CSS

Since my last web design article was so popular, I decided to write a similar one.

This time we'll start with an ordinary looking login form. The usability experts reading this will immediately notice a few design flaws.

memberlogin

For small forms like this one, field labels should be aligned to the right to minimize the distance your user's eyes must travel. I've also moved the link and submit button directly under the input boxes.

memberlogin

I've encapsulated the form in a fieldset (<fieldset></fieldset>) and replaced the title with a legend (<legend></legend>). This isn't normally nessesary but it helped define the form within all the surrounding white space.

memberlogin

Styling the legend...

memberlogin

I've added a yellow background and border to the fieldset and given it some rounded corners. I also moved the submit button to the bottom right so less eye movement is required by the user.

memberlogin

Very nice article. Thank you

Jdark

Cosas simples, pero que dan un buen estilo.

Aaron Saray

Hello,

Good tips for the new developer. However, one thing that might baffle newer designers is the background color on your fieldset. Unfortunately, in IE for windows, the background color extends to the top of the legend instead of the interior of the border. The only solution I know of as yet, for IE, is to style the background your color - and then add a background image of the height from the background color start to the border of the fieldset and repeat it horizontally. Of course, make sure this image is the color of the background outside of the fieldset.

Keep up the good work, friend!

-aaron

Comment on this article
Name
Website
Canberra Web Design