title: CSS dots with border with :before and :after
body: <p>The effect I want to get looks exactly like in the link. The problem is the way I did it is not perfect. When I enlarge the site (ctrl + scroll), the content doesn't look centered. The best solution is to use CSS :before and :after and I want to keep it this way.</p>
  
  <p><a href="https://jsfiddle.net/4a9c3p5q/3/" rel="nofollow noreferrer">https://jsfiddle.net/4a9c3p5q/3/</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div {
    width: 120px;
    height: 50px;
    position: relative;
  }
  
  div::before {
    content: "";
    height: 100%;
    width: 2px;
    position: absolute;
    right: 10px;
    background: red;
  }
  
  div::after {
    content: "\00B7";
    color: red;
    background: white;
    position: absolute;
    top: 0;
    right: 2px;
    font-size: 70px;
    padding: 2px;
    border: 2px solid red;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;Sample text.&lt;/div&gt;
  &lt;div&gt;Sample text.&lt;/div&gt;
  &lt;div&gt;Sample text.&lt;/div&gt;
  &lt;div&gt;Sample text.&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>