doominabox1 doominabox1 - 5 months ago 33
HTML Question

How to align text and select box horizontally?

This code produces

<td NOWRAP><?php echo "Employee Birthdays for " . $monthName; ?></td>
<td width="100%"></td>
<td valign="middle">
<form method="get">
<select type="submit" name="mo" onchange="this.form.submit()">
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>

This picture:enter image description here

How can I get the month selector box to actually line up with "Browse:"?

Edit: I should note that this works in IE, but in Chrome it's misaligned.


add any one code in your css

  margin-bottom: 0em;


  margin-bottom: 0em !important;