[eluser]cominus[/eluser]
No offense intended, but tables seldom lead to good style. Why not try css. Add <div>tags in your code and style them with a style sheet, as in the examples below.
Style code (stylesheet):
Code:
/* Forms -------- */
/* login */
#form_login {
width:350px;
margin:0 auto;
border:1px dashed #999;
padding:5px;
}
#member_email {
float:right;
}
#password {
float:right;
}
Sample div tag for the form and the fields. Instead of shortcutting the fields in the form, give them name and id, etc. using the id to style each field. As in this example. In your case, one field could float left and the other right. That would line them up horizontal.
Code:
<div id="form_login">
<div id="form_login">
<?php echo validation_errors();?>
<?php echo form_open('login/loggedin'); ?>
<?php echo form_fieldset('Login Form'); ?><br /><br />
<?php echo form_label('Member Email','member_email'); ?>
<?php $email_data = array(
'name' => 'member_email',
'id' => 'member_email',
'value' => '',
'maxlength' => '60',
'size' => '30'
);
echo form_input($email_data);
?><br /><br />
<?php echo form_label('Password','password'); ?>
<?php $password_data = array(
'name' => 'password',
'id' => 'password',
'value' => '',
'maxlength' => '60',
'size' => '30'
);
echo form_password($password_data);
?><center><br /><br />
<?php echo form_submit('loginsubmit','Submit Login'); ?>
<br /><br /></center>
<?php echo form_fieldset_close(); ?>
<?php echo form_close(); ?>
</div>
Hope this is helpful.