HighDots Forums  

form in row, row too high

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss form in row, row too high in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Smith
 
Posts: n/a

Default form in row, row too high - 04-21-2008 , 07:14 PM






One of the rows in a table is twice as high as others. I trace the
problem to the following code. If I remove everything between <form> and
</form>, the row would have a regular height. If I put anything in
between, even the word "test", suddenly, the row height doubles.

Anyway to cure the problem?

=============================================
<form>
<font size=2 color="#aa3f30">search</font>

<select >
<option value="sci" selected >web</option>
<option value="sciencenow" >Daily News</option>
<option value="sigtrans" >Science</option>
<option value="sageke" >search</option>
<option value="scirecruit">Careers</option>
<option value="searchall">All Journals</option>
</select>
<input type="text" name="fulltext" value="" size="10" title="Enter
your search terms">
<input type="image" name="search_submit" value="go" src="go.gif"
alt="Go" ><font size=1 color=blue><u> Advanced</u></font>
</form>

Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: form in row, row too high - 04-21-2008 , 08:10 PM






In article <fujalv$i6f$1 (AT) aioe (DOT) org>, John Smith <jsmith (AT) company (DOT) com>
wrote:

Quote:
One of the rows in a table is twice as high as others. I trace the
problem to the following code. If I remove everything between <form> and
/form>, the row would have a regular height. If I put anything in
between, even the word "test", suddenly, the row height doubles.

Anyway to cure the problem?

=============================================
form
font size=2 color="#aa3f30">search</font

select
option value="sci" selected >web</option
option value="sciencenow" >Daily News</option
option value="sigtrans" >Science</option
option value="sageke" >search</option
option value="scirecruit">Careers</option
option value="searchall">All Journals</option
/select
input type="text" name="fulltext" value="" size="10" title="Enter
your search terms"
input type="image" name="search_submit" value="go" src="go.gif"
alt="Go" ><font size=1 color=blue><u> Advanced</u></font
/form
Fix up this little bit of markup first. In fact, supply a proper url
with a doctype and all validated to demo your concern. Not too much to
ask, is it?

--
dorayme


Reply With Quote
  #3  
Old   
John Smith
 
Posts: n/a

Default Re: form in row, row too high - 04-22-2008 , 06:47 PM



Thanks for the replies.

The problem is, indeed, like what Ben said, form margin. Browsers tend
to leave blank spaces before and after forms. This usually would not be
a problem but when the form is in a table, this would double the row height.

The solution is to set the form margin to zero.

The following site has a detailed explanation.

http://www.cs.tut.fi/~jkorpela/forms/extraspace.html

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.