• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 131
  • Last Modified:

form putting space around images

Hi! My page is split up into frames. In the left frame I have an index containing several buttons for navigation.  Each of these buttons needs to be a form because each one will be passing hidden fields.  My problem is that putting each button in a form puts such a space around each image, that it is causing the user to have to scroll down to view all the buttons. Well,I need the buttons all on the page with NO scrolling. I want to know if there is any way to minimize this space created by the forms.  When I get rid of the <form></form> around each button the space goes away.  Any ideas????? Thanks, Kirsten
0
klc20
Asked:
klc20
1 Solution
 
DreamMasterCommented:
Hmmm...might be able to solve this for you....but I will need the code to do so....

Max.
0
 
dorwardCommented:
<form method="" action="" style="display: inline; padding: 0; margin: 0;">
0
 
webwomanCommented:
You really shouldn't put each button in a form, it's rarely necessary. There should be ONE form, not many. And I really question the need for a form at all, if it's navigation.

Could you post a link to the page? You might get more help than you bargained for... ;-)

0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
coreyitCommented:
Though technically invalid html, an often used trick if you are using tables for your layout is to place the form tags between, say, the table and tr tags.

for example:

<table>
  <form>
    <tr><td><input type="image" src="..."></td></tr>
  </form>
  <form>
    <tr><td><input type="image" src="..."></td></tr>
  </form>
</table>

instead of

<table>
  <tr>
    <form>
      <td><input type="image" src="..."></td>
    </form>
  </tr>
  <tr>
    <form>
      <td><input type="image" src="..."></td>
    </form>
  </tr>
</table>

-corey
0
 
brunoCommented:
why don't you just make the buttons into normal links, and put the hidden fields into the querystring?
0
 
COBOLdinosaurCommented:
Dorwards solution is the most reliable.

Cd&
0
 
COBOLdinosaurCommented:
Giving a B for an A answer, will make some of us reluctant to help in the future.

Cd&
0
 
klc20Author Commented:
didnt know 'B'was considered bad....sorry.  i guess im knew at this...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now