Page 1 of 1

Avoiding 'banding' when defining FORM area

Posted: Tue Mar 23, 2004 11:02 am
by mjseaden
Hi,

Often, when I define a form, something like this:

Code: Select all

<HTML>
<BODY>
<TABLE>
// stuff
<FORM>
// more stuff, including perhaps several more tables inside tables
</FORM>
</TABLE>
</BODY>
</HTML>
I get mysterious 'bands' occurring both immediately above and below the scope of the form, often 15 pixels in height or similar.

Can anyone tell me how I can avoid this irritating phenomena?

Many thanks

Mark

Posted: Tue Mar 23, 2004 11:11 am
by patrikG
moved to client-side

Posted: Tue Mar 23, 2004 11:59 am
by andre_c
set the css property margin on the form tag to 0px:

Code: Select all

<style>
form &#123; margin: 0px; &#125;
</style>

Posted: Thu Mar 25, 2004 2:46 pm
by no_memories
Andre_c:

for I.E. you need to adjust this to:

table form {
margin: 0xp 0xp 1px 0px;
padding: 0px;
}

The 1px at the bottom is so I.E. can tell there is a margin at all.

margin = top right bottom left