[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

too much in between form input lines

I know what the obvious answer is, that is not the
problem. I know that I must put my form tags outside
the table to force the input lines to be close together.
My question is: Since I have to put a small javascript
in with each input to create a slider and because of
that I have to have muliple forms, with one for each
input line; then how can I put the form tags outside
the table. It is impossible isnt it! My program will
not work nearly as neatly with form having a large
heigth because it puts the shou3d viewer higher on the
page so I cant see as much of it.
0
johnh619
Asked:
johnh619
  • 4
  • 3
  • 2
  • +5
1 Solution
 
avnerCommented:
Try this :

<STYLE>
FORM
{DISPLAY:INLINE}
</STYLE>


If this is not what you wanted, try to send some code since your question itself is a bit confusing.


0
 
dorwardCommented:
<td><form ... style="display:inline; padding: 0; margin: 0;"><!-- content --></form></td>
0
 
CJ_SCommented:
place your form tags within the table but outside the TR

<table ...>
 <form ...>
 <tr>
  ...
 </tr>
 </form>
 <form ...>
 <tr>
  ...
 </tr>
 </form>
</table>
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
DreamMasterCommented:
Is there a height property in your table? That will stretch the cells to fit the content....I've had that problem before...

Max.
0
 
dorwardCommented:
DON'T put your <form> tags outside the <tr> but within the <table>, that is INVALID HTML and will make little demons come out of your nose (well, the behaviour is undefined, so while it could make little demons come out of your nose it is more likely to work in some browsers and not work in other browsers. This will result is some people being unable to use the form.)
0
 
CJ_SCommented:
dorward,
TR method has been tested and works on IE4+, NS4+ on PC and Mac. I also assume that it works on Opera though not tested.

CJ
0
 
avnerCommented:
CJ_S ,
You might be right , but still , this method is not W3C and I belive it's a bad coding approach do work around Browsers bad implementation.
0
 
DreamMasterCommented:
Partly I agree avner, but I believe that any fix, as dirty as it may seem, that gets the job done for the required browsers...is a good fix...

I agree that it's bad coding, but if with "good coding" there is no solution...you have to make a choice...

Max.
0
 
avnerCommented:
Well, The thing is that there is a solution , using
DISPLAY:INLINE will solve this problem.
0
 
CJ_SCommented:
Look at it as if it were an undocumented feature.

It's the same as taxes. if you can somehow get your money back which isn't documented, one would do it... right?

bad example though, but it gets the job done.

CJ
0
 
CJ_SCommented:
Not in Netscape...I think (haven't teste dor something)
0
 
webwomanCommented:
Netscape 6 will die with the form fields between the TR tags. If you use display:inline it works for just about everything, except maybe Netscape 4 (it might work there, I just don't remember).

So it's really a toss up -- if you know you don't have anybody using Netscape 6, you can use the form tags between the tr. If you think you might have somebody using it, you don't have much of a choice -- display:inline is about the best you can do.

Because while the extra space from the form tags is annoying in NN4, having the form not work at all in NN6 is worse.

Tradeoffs.. don't ya love 'em? ;-)
0
 
pleasenospamCommented:
0
 
webwomanCommented:
That is an extremely old page... if you have to support extremely old browsers, it might be useful ;-)
0
 
COBOLdinosaurCommented:
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Cd&
0
 
COBOLdinosaurCommented:
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to avner

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
MoondancerCommented:
Thanks, Cd&, for your help here.

This has been finalized today, and monitoring for comments.

Moondancer - EE Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now