WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Forms - Extra vertical space


From: Michael D. Roush
Date: Nov 25, 2003 10:01AM

----- Original Message -----
From: "Laurie Davis-Covin" < <EMAIL REMOVED> >

> I think I missed this answer a few weeks ago. I'm experiencing extra
> vertical space when I
> insert the form tags.(I've validated down to this.) Because I'm using a
> search control on my banner and
> I have a connecting left nav bar, it is very obvious.

For most browsers, a "form" gets a default top and bottom margin much like a
paragraph tag does. Perhaps if you include a style specification to remove
those margins, it will fix the problem?

<form method='[post|get]' action='http://www.yoursite.gov/yourprocessor.ext'
style='margin-top: 0px; margin-bottom: 0px;'>

Try this in your form, and if it works then you can put the style
specification in the head or in an external style sheet, whichever one you
are using for your site.


To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/