I am seeking assistance with achieving a specific effect in CSS, as shown in the attached screenshot.
The trailing dots should cover the entire width of the element (100%) and be responsive. However, I encountered an issue when placing the header on a background; the usual technique did not work for me because the white background on the span caused the underlying pattern to disappear.
For reference, here is a link to a fiddle
<style type="text/css">
body{background: red;}
h1{background: url(https://i.sstatic.net/23XVz.png) repeat-x 0 0 transparent;}
h1 span{background: #fff;}
</style>
<h1><span>SERVICE</span></h1>