Reputation: 654
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?
Upvotes: 0
Views: 137
Reputation:
<td>
<p style="float:left;">1<p>
<input type="text" value="" style="float:right;"/>
I have ommited the <p class="obj_2 view"></p>
Upvotes: 0
Reputation: 7678
<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>
Upvotes: 1
Reputation: 1869
You can use float:left
property for align 2 p elements in a single line
Upvotes: 1