The beginning <div> for your form has a class assigned to it named "row" however i don't know what your css looks like for that class so I can't tell you if you can just adjust that code or what, but if you change the code in that page to the written code below, it will center the form for you within whatever space it's living in. I've set the width to 250px though so you'll need to adjust based on what your preference is.
Code:
<?php include_once('classes/signup.class.php'); ?>
<?php include_once('header.php'); ?>
<div class="row" style="margin:auto; width:250px;">
<div class="span6">
<form class="form-horizontal" method="post" action="sign_up.php" id="sign-up-form">
<fieldset>
<div class="control-group">
<label class="control-label" for="name"><?php _e('Full name'); ?></label>
<div class="controls">
<input type="text" class="input-xlarge" id="name" name="name" value="<?php echo $signUp->getPost('name'); ?>" placeholder="<?php _e('Full name'); ?>">
</div>
</div>
<div class="control-group" id="usrCheck">
<label class="control-label" for="username"><?php _e('Username'); ?></label>
<div class="controls">
<input type="text" class="input-xlarge" id="username" name="username" maxlength="15" value="<?php echo $signUp->getPost('username'); ?>" placeholder="<?php _e('Choose your username'); ?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password"><?php _e('Password'); ?></label>
<div class="controls">
<input type="password" class="input-xlarge" id="password" name="password" placeholder="<?php _e('Create a password'); ?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password_confirm"><?php _e('Password again'); ?></label>
<div class="controls">
<input type="password" class="input-xlarge" id="password_confirm" name="password_confirm" placeholder="<?php _e('Confirm your password'); ?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="email"><?php _e('Email'); ?></label>
<div class="controls">
<input type="email" class="input-xlarge" id="email" name="email" value="<?php echo $signUp->getPost('email'); ?>" placeholder="<?php _e('Email'); ?>">
</div>
</div>
<div class="control-group">
<?php $signUp->profileSignUpFields(); ?>
</div>
<div class="control-group">
<?php $signUp->doCaptcha(true); ?>
</div>
</fieldset>
<input type="hidden" name="token" value="<?php echo $_SESSION['jigowatt']['token']; ?>"/>
<button type="submit" class="btn btn-primary"><?php _e('Create my account'); ?></button>
</form>
</div>
<?php include_once('footer.php'); ?>
However, you may want to assign the DIV an ID in your CSS to keep it separated. for example:
Code:
#registrationform {
margin:auto;
width:250px;
}
Then replace the code to be:
Code:
<?php include_once('classes/signup.class.php'); ?>
<?php include_once('header.php'); ?>
<div id="registrationform" class="row" >
<div class="span6" >
<form class="form-horizontal" method="post" action="sign_up.php" id="sign-up-form">
<fieldset>
<div class="control-group">
<label class="control-label" for="name"><?php _e('Full name'); ?></label>
<div class="controls">
<input type="text" class="input-xlarge" id="name" name="name" value="<?php echo $signUp->getPost('name'); ?>" placeholder="<?php _e('Full name'); ?>">
</div>
</div>
<div class="control-group" id="usrCheck">
<label class="control-label" for="username"><?php _e('Username'); ?></label>
<div class="controls">
<input type="text" class="input-xlarge" id="username" name="username" maxlength="15" value="<?php echo $signUp->getPost('username'); ?>" placeholder="<?php _e('Choose your username'); ?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password"><?php _e('Password'); ?></label>
<div class="controls">
<input type="password" class="input-xlarge" id="password" name="password" placeholder="<?php _e('Create a password'); ?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password_confirm"><?php _e('Password again'); ?></label>
<div class="controls">
<input type="password" class="input-xlarge" id="password_confirm" name="password_confirm" placeholder="<?php _e('Confirm your password'); ?>">
</div>
</div>
<div class="control-group">
<label class="control-label" for="email"><?php _e('Email'); ?></label>
<div class="controls">
<input type="email" class="input-xlarge" id="email" name="email" value="<?php echo $signUp->getPost('email'); ?>" placeholder="<?php _e('Email'); ?>">
</div>
</div>
<div class="control-group">
<?php $signUp->profileSignUpFields(); ?>
</div>
<div class="control-group">
<?php $signUp->doCaptcha(true); ?>
</div>
</fieldset>
<input type="hidden" name="token" value="<?php echo $_SESSION['jigowatt']['token']; ?>"/>
<button type="submit" class="btn btn-primary"><?php _e('Create my account'); ?></button>
</form>
</div>
<?php include_once('footer.php'); ?>
Make sense?
Also the class="row", depending on what it's code is within your CSS, may throw some things off, i'm not sure if you need it, try removing that portion of the code if you're still having issues and just leave the <div id="registrationform"> or <div style="margin:auto; width:250px;">