dl {
width: 480px;
}
dt {
float: left;
clear: right;
width: 100%;
background: url(http://galeon.sourceforge.net/twiki/pub/TWiki/TWikiDocGraphics/dot_lr.gif) repeat-x 0 180%;
}
dt span {
background: #fff;
}
dd {
float: right;
width: auto;
}
<dl>
<dt><span>Phone</span></dt>
<dd>123-4567</dd>
<dt><span>Email</span></dt>
<dd><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9ff6f1f9f0dffaf2fef6f3b1fcf0f2">[email protected]</a></dd>
</dl>
I am facing a challenge trying to ensure that there is a dotted line cutting through the center of my text, but I am struggling with adjusting the width of the dots. The issue arises where the text keeps moving to the next line after the dots.
You can take a look at what I mean by visiting the following link: