views:

43

answers:

1

Hy eveyone. I think this is a css Problem. Im not good at css, so i need your help. basicaly what i want to do is, create a small select box, thats fine i did that and a input box, thats also fine i did that also. But unfortunatly the selectbox is over the inputbox. How can i place both on the same place?

Here is the code

<select style="width:50px;height:20px;margin-left:30px">
<option selected="selected">Please select</option>
<option>1</option>
</select>
<input type='text' name='test' style="width: 210px;"value='' />
+1  A: 

If you mean you want them on the same row, then enclose them in a div:

<div>
  <select style="width:50px;height:20px;margin-left:30px">
    <option selected="selected">Please select</option>
    <option>1</option>
  </select>
  <input type='text' name='test' style="width: 210px;"value='' />
</div>
Robusto
Thanks, this worked for me.
streetparade