I'm a newbie to web development, so this might sound dumb.
I was trying to echo a form.
<tr>
<td><?php echo form_label($login_label, $login['id']); ?></td>
<td><?php echo form_input($login); ?></td>
<td style="color: red;"><?php echo form_error($login['name']); ?><?php echo isset($errors[$login['name']])?$errors[$login['name']]:''; ?></td>
</tr>
<tr>
<td> <?php echo form_label('Password', $password['id']); ?></td>
<td><?php echo form_password($password); ?> </td>
<td style="color: red;"><?php echo form_error($password['name']); ?><?php echo isset($errors[$password['name']])?$errors[$password['name']]:''; ?></td>
</tr>
The login form appears at the top left of the webpage. Is there any way to position this into the center of the page or move it around the page.
Thanks for the help.
EDIT:
I tried doing this:
<style>
#content {
width:500px;
margin:0 auto ;
text-align:center;
}
</style>
<div id='content'>
<tr>
<td><?php echo form_label($login_label, $login['id']); ?></td>
<td><?php echo form_input($login); ?></td>
<td style="color: red;"><?php echo form_error($login['name']); ?><?php echo isset($errors[$login['name']])?$errors[$login['name']]:''; ?></td>
</tr>
</div>
This moved the login form down but not to the side. Any ideas?