Priya Priya - 2 years ago 115
PHP Question

I have one form and my label is not in the same line of text area

<td valign="top" width="25%" class="contact-form" id="require">Or please give us a description of your requirements (Max:1000 characters)<font color="red" size="3">*</font>
<td width="5%" class="contact-form">:</td>
<td width="70%" class="contact-text-form"><textarea name="requirements" class="contact-form-filds2" id="requirements" cols="1000" rows="3" value="<?php echo htmlspecialchars($require);?>" ></textarea><span class="error"><?php echo $requireErr;?></span></td>

Or please give us a description of your requirements (Max:1000 characters)*

" >

Answer Source

You can write it in the table's <tr></tr> element to align it properly without the valign attribute. Each label, textfield has only one row to display it properly.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download