Jump to content

[SOLVED] Alligning submit button underneat optionbox


Recommended Posts

At present my submit button is left alligned but I'd like to have it alligned underneath my optionbox.

 

How would I code this?

 

<html>
<style type="text/css">
label {
width:150px;
margin-right:5px;
text-align:right;
display:block;
float:left;
}
.style1 {font-weight: bold}
</style>
<body>
<form name="test.php" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
  <p><img src="untitled.jpg" alt="" width="994" height="176" /></p>
    <p align="left"><strong>
    <label for "Station">Poling Station</label>   
    <select name="Station">
  <option value="Athy Boys Nat. School - Room 01">Athy Boys Nat. School - Room 01</option>
  <option value="Athy Boys Nat. School - Room 02">Athy Boys Nat. School - Room 02</option>
  <option value="Athy Boys Nat. School - Room 03">Athy Boys Nat. School - Room 03</option>
  <option value="Athy Boys Nat. School - Room 04">Athy Boys Nat. School - Room 04</option>
  <option value="Athy Boys Nat. School - Room 05">Athy Boys Nat. School - Room 05</option>
  <option value="Athy Boys Nat. School - Room 06">Athy Boys Nat. School - Room 06</option>
  <option value="Athy Boys Nat. School - Room 07">Athy Boys Nat. School - Room 07</option>
  <option value="Athy Boys Nat. School - Room 08">Athy Boys Nat. School - Room 08</option>
  <option value="Saint Vincent's Hospital">Saint Vincent's Hospital</option>
  <option value="Scoil Mhichil Naofa - Room 01">Scoil Mhichil Naofa - Room 01</option>
  <option value="Scoil Mhichil Naofa - Room 02">Scoil Mhichil Naofa - Room 02</option>
  <option value="Scoil Mhichil Naofa - Room 03">Scoil Mhichil Naofa - Room 03</option>
  <option value="Scoil Mhichil Naofa - Room 04">Scoil Mhichil Naofa - Room 04</option>
  <option value="Scoil Mhichil Naofa - Room 05">Scoil Mhichil Naofa - Room 05</option>
    </select>
  </strong>
    <p align="left">
    <input name="submit" value="Submit" type="submit" />
  </p>
</form>
</body>
</html>
<?
}
// don't forget to close the mysql connection
mysql_close();
?>

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.