enter image description here

How to properly implement this?

  • possible through pseudo-elements before & after - user190134

2 answers 2

I would use ::before & ::after , decorated in the form of points and placed along the edges through position: absolute .

 .dotted{ color: blue; text-transform: uppercase; width: 100px; height: 20px; padding: 20px; position: absolute; text-align: center; } .dotted::after, .dotted::before{ content: "●"; position: absolute; } .dotted::before{ left: 0; } .dotted::after{ right: 0; } 
 <div class="dotted">История</div> 

    As an option you can through mnemonics in HTML &bull

     <p>&bull;История &bull;</p>