So, I am studying some php and found that my html skills are more than a little rusty. I am trying to have my textarea span two columns of a table. W3schools says that I can do colspan for the <th> , but did not see if it was supported for <td> . I was thinking of splitting it between two tables of the same form. There seems to be an easier way to do this. I tried td colspan "2" but did nothing
echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post" id="crud_form">'; echo '<table id="table_articles">'; echo '<tr><td>Article Title:</td><td> <input type="text" name="art_title" /></td></tr>'; echo '<tr><td>Author:</td><td> <input type="text" name="author" /></td></tr>'; echo '<tr><td>Date Posted:</td><td> <input type="text" name="d_posted" /></td></tr>'; echo '<tr><td>Article Text:</td></tr>'; echo '<tr><td><textarea rows="10" columns="60" name="art_text" ></textarea></td></tr>'; echo '<tr><td><input type="submit" name="submit_art" value="Submit" /></td></tr>'; echo '</table>'; echo '</form>';
CSS
#crud_form { color:red; position:absolute; left:300px; top:200px; border-style:outset; border-width:5px; border-color:red; background-color:#cccccc; } #table_articles { color:red; width:450px; height:300px; }
Thoughts? Thanks for the help.
source share