How can I create dash dot and dash dot dot lines and rectangles using only CSS, without relying on external image links or other resources (inline data urls may be used if necessary)?
https://i.sstatic.net/hSNkj.png
The following CodePen link showcases some examples.
hr.style17:after {
content: '§';
display: inline-block;
position: relative;
top: -14px;
padding: 0 10px;
background: #f0f0f0;
color: #8c8b8b;
font-size: 18px;
-webkit-transform: rotate(60deg);
-moz-transform: rotate(60deg);
transform: rotate(60deg);
}
This example utilizes the content and rotate CSS properties. Perhaps these can be utilised for creating similar effects.