View Full Version : Code for Form adding a line ?

Finland Blue
04-27-2010, 12:16 PM
I have a form, and it appears to be adding a blank line to the viewed web page.

I cannot work out why this might be - can anyone help?

See http://www.travel-experience.net/request.htm - between the "Email a Request" and "Name" is the space I am trying to avoid.


04-27-2010, 12:42 PM
In the style rule:

h1, h2, h3, h4, h5, h6, p, pre, blockquote, form, ul, ol, dl {
margin:20px 0;

You're adding 20px of top and bottom margin if that's what you mean.

A bigger issue is that in FireFox (Mac) the center column is overflowing the footer. You need to clear your floats in there somewhere.

Finland Blue
04-27-2010, 01:36 PM
Oh, yes, that was it the 20px top margin set for any form. Thanks for spotting that.

Re the overflowing of the footer - that could be to do with the 20px "extra" space at the top. Although, I tested this in Chrome, IE, and Firefox, on a PC, and there is no overflow there. Are you still getting it?

Thanks for noticing that too :-)

04-27-2010, 01:50 PM
If you get the Firebug extension for Firefox, you'll be able to click on HTML elements on your page and it will display the CSS rules that is applied to it.