Welcome to WebmasterWorld Guest from 54.226.238.178

Forum Moderators: incrediBILL

Message Too Old, No Replies

automatic newline in forms

     
12:47 pm on Nov 24, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 5, 2006
posts:69
votes: 0


How do I get rid of the automatic newline produced after IE's implimentation of the form tag? Firefox doesn't have this problem. I've only had this problem with IE and that's even after specifying strict.dtd .

[edited by: Clinton_Labombard at 12:49 pm (utc) on Nov. 24, 2006]

2:08 pm on Nov 24, 2006 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9068
votes: 4


The problem happens because the
form
is a block-level element. You can usually fix this by declaring it as inline instead:

<form action="whatever.php" [b]style="display:inline;"[/b]>

(or declare it directly in your stylesheet).

3:04 pm on Nov 24, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 5, 2006
posts:69
votes: 0


That's got it. I didn't think to RTFM. Thanks!