The easiest way is probably to make the line a background image, and then add another HTML element in front of it to contain the text:
<div class='linebehind'> <span class='text'>The 20th of</span> </div> <style> .linebehind { background: url('imageWithLine.gif') repeat-x; text-align: center; } .text { display: inline-block; background: white; padding: 0 5px; } </style>
Note: this code is probably not perfect, but it should be more or less what you are looking for, a little tweak.
source share