Once you provided more details about your question, I was able to come up with a solution.
A div with a dashed bottom border and text displayed on top with a white background.
Here is an example:
CSS:
.line{
border-bottom:1px dashed black;
position:relative;
height:16px;
}
.line span{
display:inline-block;
position:relative;
background:white;
bottom:-2px;
height:100%;
padding:0 5px;
}
.line .price{
position:absolute;
right:0;
}
HTML:
<div class="line">
<span class="title">name</span>
<span class="price">123.23$</span>
</div>
<div class="line">
<span class="title">name</span>
<span class="price">123.23$</span>
</div>
http://jsfiddle.net/bKuVe/