Pages

Friday, February 01, 2008

Preventing form tag create new line

To prevent form tag in html creating new line, create the css for the form with attribute display: inline;
For example, to apply it for all forms, create css as follow:
form {display: inline; }
or directly in the form:
<form style="display: inline">

That's all :)

6 comments:

  1. this doesn't work in Firefox. Know how to get it to work in both FF and IE?

    ReplyDelete
  2. This worked for firefox and ie for me. Thank you

    ReplyDelete
  3. THANK YOU!!!!
    I've been searching for something similar for months...

    Now my page works perfectly both on IE and FF. Note that, if you don't use a css, this line should be added to every form to get better results.

    Kar.ma

    ReplyDelete
  4. It used to work in FF, but doesn't work for me in the new FF 3. ;-( Any suggestions?

    ReplyDelete
  5. thanks was of gr8 help

    ReplyDelete
  6. This worked perfectly. Thanks!

    ReplyDelete