Search code examples
htmlcsstextalignmentparagraph

How to align a paragraph with a textfield


In a table I have a situation like this:

<td> 
<p>1</p>
<p class="obj_2 view"></p><input class="obj_2 modifica" type="text" value=""/>

The textfield appear when I press a button, but the problem is an other one. The textfield appear under the paragraph, but I want it in the same line. So, should I add some Css code or what?


Solution

  • <td> 
      <p style="float:left">1</p>
      <p style="float:left" class="obj_2 view"></p>
      <input style="margin-top:15px;" class="obj_2 modifica" type="text" value=""/>
    </td>