Forum Moderators: not2easy

Message Too Old, No Replies

Line Breaks - before and after form

         

kazisdaman3

9:40 pm on Mar 31, 2007 (gmt 0)

10+ Year Member



Thanks for reading this,

I've been searching all over for answer can't seem to figure it out.

--------

In IE, my forms always have a break before and after the form. Regardless of it the css margins are set to 0. Does anyone have any ideas on how to fix this.

Thanks for your time, and help,
-Wesley

kazisdaman3

9:50 pm on Mar 31, 2007 (gmt 0)

10+ Year Member



nevemind thanks finally found it!

--------------------------

By default a FORM is a so called block element (like a DIV) being a
box
with top and bottom margin.
You should be able to change the display attribute of an HTML element
to inline using
<FORM STYLE="display: inline;" ...>
though only IE4+ seems to correctly interpret this.

Try this

<HTML>
<HEAD>
<style type="text/css">
<!--
form { margin-top: 0px; margin-bottom: 0px}
-->
</style>