Forum Moderators: open

Message Too Old, No Replies

Spacing after form

         

wonderboy

2:26 pm on Aug 28, 2004 (gmt 0)

10+ Year Member



Hi,

I have a form on the right of my page, for some reason there is about 25 pixels of space that is just taken by this form where it ends, if I put any pictures, text or tables there they will be shown 25 pixels below where I want them to. Is there any way to get rid off this unwanted gap?

W.

Span

3:15 pm on Aug 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

by default, forms have a top and bottom margin. You can control it with a little CSS.

In your form tag: <form ... style="margin-bottom:5px;">

Or in a style sheet:

form {
margin-top:0;
margin-bottom:5px;
}

Or just:

form {
margin:0;
}

wonderboy

3:24 pm on Aug 28, 2004 (gmt 0)

10+ Year Member



Thanks Span,

This has been annoying me for some time now, I thought a bit of CSS might have been the answer, didn't know it was a simple margin though!

Cheers,

W.