Setting up your div


<div class="footerDiv1">
<p>Test1
<p>Test1 kddkkkd ddd
<p>Test1 kddkkkd ddd
</div>

Setting up your styles


<style>
div.footerDiv1
{
text-align:right;
border-top:1px solid
}

div.footerDiv1 p
{
    margin:0 0 0 0;
}
</style>

Putting it all together


<style>
div.footerDiv1
{
text-align:right;
border-top:1px solid
}

div.footerDiv1 p
{
    margin:0 0 0 0;
}
</style>

<div class="footerDiv1">
<p>Test1
<p>Test1 kddkkkd ddd
<p>Test1 kddkkkd ddd
</div>