RGriffiths
RGriffiths

Reputation: 5970

using an iframe within a <form>

Is it possible to put an iframe within a form like this?

enter image description here

I have tried the following but it does not work:

<form action = "etc">

<iframe>
 <input type="text" name="text1">Input<br>
 <input type="text" name="text1">Input<br>
 <input type="text" name="text1">Input<br>
 <input type="text" name="text1">Input<br>
</iframe>

<input type="submit">
</form>

But I suspect this is not the way to do it. Any pointers?

Upvotes: 2

Views: 1854

Answers (1)

taxicala
taxicala

Reputation: 21759

As per your comment, you want an element with a scroll, try as follows:

HTML:

<fieldset id="lotsOfInputs">
 <input type="text" name="text1">Input<br>
 <input type="text" name="text1">Input<br>
 <input type="text" name="text1">Input<br>
 <input type="text" name="text1">Input<br>
</fieldset>

CSS:

#lotsOfInputs {
    max-height: 200px;
    with: 100%;
    overflow: scroll;
}

Upvotes: 2

Related Questions