CSS
.inner { width: 80%; } .outer { border-bottom: 1px solid #D1D1D1; color: #8C4600; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-weight: bold; font-size: 15px; }
HTML
<div class="outer"> <p class="inner">Your text</p> </div>
You probably need to set the outer width tho. Since it cannot automatically scale in every browser. Or just make the outer 120% and the inner fixed width. It should be possible in several approaches.
user1467267
source share