Reputation: 5970
Is it possible to put an iframe
within a form
like this?
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
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