Jump to content

[SOLVED] Alligning submit button underneat optionbox


mikebyrne

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();
?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.