• Using default theme. I add a dropdown box, and on save WordPress moves it to below the label. I would like it to line up next to the label. What do I need to modify in the theme to make that possible?

    <p >&nbsp;<label for="txtState">State:</label>&nbsp;<select name="state" >
      <option value="AL">Alabama</option>
    	<option value="AK">Alaska</option>
    	<option value="AZ">Arizona</option>
    	<option value="AR">Arkansas</option>
    	<option value="CA">California</option>
    	<option value="CO">Colorado</option>
    
             <option value="WY">Wyoming</option>
    </select></p>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Without actually seeing where this is going in your template its hard to say if this will work but this should give you the result you want.

    <p >&nbsp;<label for="txtState">State:</label>&nbsp;<span style="display:inline;"><select name="state" >
      <option value="AL">Alabama</option>
    	<option value="AK">Alaska</option>
    	<option value="AZ">Arizona</option>
    	<option value="AR">Arkansas</option>
    	<option value="CA">California</option>
    	<option value="CO">Colorado</option>
    
             <option value="WY">Wyoming</option>
    </select></span></p>

    Thread Starter mlevenstein

    (@mlevenstein)

    Thanks for your help. I’ve read up on “display:inline”. Was not familiar with that before.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with dropdown box’ is closed to new replies.