How can I add text and an input textbox in the same line?
I’m using WordPress, and I am adding that kind of things to a page, but the format seems to be different and the elements appears in different lines.
I’m using regular code like this:
<form width="300px">
<a>First name:</a> <input type="text" name="firstname" /><BR />
<a>Last name:</a> <input type="text" name="lastname" />
</form>
<table border="1">
<tr>
<td>row 1, <input type="text" name="firstname" /></td>
<td>row 1, <input type="text" name="firstname" /></td>
</tr>
<tr>
<td>row 2, <input type="text" name="firstname" /></td>
<td>row 2, <input type="text" name="firstname" /></td>
</tr>
You either need to span your td across both columns
or, you’re table is too narrow, here is how to set your table to 500 pixels wide.
you can then change the widths of your table rows if you are having an issue with a column being too narrow.