Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you change the size of a Form Tag?

Status
Not open for further replies.

danielh68

Technical User
Joined
Jul 31, 2001
Messages
431
Location
US
Hi,

I building this site and I'm having difficulties creating a form. Actually, the form is not the problem, it the Form Tag the developer has to insert before inserting a "Submit button", "Password Field", etc. The Form Tage demands too much space for a small button. I can insert a button without a Form Tag and everything is fine, however the buttons don't show up in all browsers. When I insert the Form Tag (the little perforated field) it pushes out my table structure. Can I amend the size of the Form Tag? It seems like I should, I see numerous other sites with their data fields snugged up to one another. Unfortunately, mine has this big gap between them. Your advice is much appreciated.

Thanks,
Dan
 
I recognise your problem;
I usually edit the source-code to overcome this. Just go back to writing in plain HTML. Start the form where YOU want it to start, and where YOU want it to end.
DW sometimes shows the yellow blocks that suggest there's something wrong after editing the form in the source-code, but when you're curtain you did it propperly, it 'll work fine.
Otherwise......show us the source-code and we'll find your problem!

Quasibobo *** Don't eat yellow snow! ***
 
Thanks for you response. I'm looking at the source-code but I fail to see where I can change the height/width paramenters of the Form Tag. Here's the segment of code that puzzles me:


<TD valign=&quot;top&quot; colspan=&quot;3&quot;>
<form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot;>
<input type=&quot;text&quot; name=&quot;textfield&quot;>
</form>
</TD>

I want the height of my TD to remain at &quot;35&quot;, however the Form Tag forces it to be &quot;47&quot;. Again, any advice is appreciated.

Thanks,
Dan
 
Maybe this helps: put the form tag in front of the table and the closing tag after closing the table:

<form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot;>
<TD valign=&quot;top&quot; colspan=&quot;3&quot;>
<input type=&quot;text&quot; name=&quot;textfield&quot;>
</TD>
</form>

When it's the only form on a page I usually put the form right after the <body>-tag, and close the form right before the </body>-tag. It's not really neccesary to put the form-tags directly around the form-objects!

Hope this helps,

Quasibobo *** Don't eat yellow snow! ***
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top