Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macaddict23

macrumors 6502
Original poster
Jun 20, 2006
382
1
MacVille, USA
I have a 100px x 20px image. I want to place a drop down menu to the right of this image. But right now, the drop down wraps under the image.

Here's a sample code:

<img src="myimage.jpg">
<form id="form2" name="form2" method="post" action="">
<select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">
<option>Find a Dealer</option>
<option value="#">Dealer 1</option>
<option value="#">Dealer 2</option>
<option value="#">Dealer 3</option>
</select>
</form>
 
My first thought is that it's the form. The form tag is a block element so there's a new line before and after it. Use CSS to make the form inline.

Code:
#form2 {
 display: inline;
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.