HTML
<div class="containerDiv">
    <p>Test</p>
    <input type="checkbox" checked="checked" />
</div>
CSS
.containerDiv 
{
    width:600px;
}
.containerDiv p 
{
    margin: 10px 0px 10px 10px;
    float: left; 
    width: 500px;
}
.containerDiv input[type='checkbox']
{
    float: right;
    margin: auto 10px;
}
Hello,
I have a div with a text (the text can be very long) in a p-tag and a input.
I want vertical center the input right next to the text, but float: left and margin: auto 10px doesn't work.
 
     
     
     
     
    