Вопрос

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?

Это было полезно?

Решение

<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>

Другие советы

You can use float:left property for align 2 p elements in a single line

<td>
<p style="float:left;">1<p>
<input type="text" value="" style="float:right;"/>

I have ommited the <p class="obj_2 view"></p>

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top