How do you use <textarea> with an input box?
I tried this, but it didn’t work (obviously), but it seems close to what i need.
echo 'description:<textarea rows="3" cols="30"> <input style="width:275px;height:50px;overflow:scroll;" name="description" value="' . $description . '" type="text" /> </textarea> ';
ralphm
2
The <textarea> element is an input box in its own right, so don’t put anything inside it.
This is the basic code:
<label for="desc">Description</label>
<textarea id="desc" name="description" rows="3" cols="30">
</textarea>
To style the <textarea>, target it in your stylesheet like so:
textarea {
width:275px;
height:50px;
overflow:scroll;
}
I understand. Thanks ralph.m.