title: Using Css calc() to align a Pseudo element to work all screen
body: <p>so like the title says, i am trying to align the bullets to align in the center of the vertical grey line. I am kind of beginner with css and not 100% sure how calc() work even-thou i have successfully implemented in other places. Is this the right approach to do my alignments ? Using media query would be too much since there are too many break points and changing the html is not an option per design. One of the cal() function i successfully used was this:</p>
  
  <blockquote>
    <p>left: calc((100% - 3 * 11rem) * .54 - 4px)!important;</p>
  </blockquote>
  
  <p>so i thought i can use the same formula then changing the values till the grey line aligns. Seems this thought was flawed</p>
  
  <p><strong>Desired look</strong></p>
  
  <p><a href="https://i.stack.imgur.com/fBvAL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fBvAL.png" alt="enter image description here"></a></p>
  
  <p><strong>Current look</strong></p>
  
  <p><a href="https://i.stack.imgur.com/nYTFY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nYTFY.png" alt="enter image description here"></a></p>
  
  <p><strong>Here is my code:</strong></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>html {
    font-size: 18px;
  }
  @media (min-width: 576px) {
    .container {
      max-width: 540px;
   }
  }
  @media (min-width: 768px) {
    .container {
      max-width: 720px;
   }
  }
  @media (min-width: 992px) {
    .container {
      max-width: 960px;
   }
  }
  @media (min-width: 1200px) {
    .container {
      max-width: 1400px;
   }
  }
  h1, .h1 {
    font-size: 3.815rem;
  }
  h2, .h2 {
    font-size: 2.441rem;
  }
  h3, .h3 {
    font-size: 1.563rem;
  }
  h4, .h4 {
    font-size: 1.25rem;
  }
  .project-methodology-wrap {
    padding: 5rem 0;
   /*========== Media queries ==========*/
  }
  .project-methodology-wrap .methodologyBullet::before {
    content: '';
    width: 25px;
    height: 25px;
    background: #d4272e;
    position: absolute;
    border-radius: 30px;
    left: 26px;
    top: 0px;
    opacity: 0;
  }
  .project-methodology-wrap .methodologyBullet::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #d4272e;
    position: absolute;
    border-radius: 30px;
    left: 33px;
    top: 2px;
  }
  .project-methodology-wrap .project-methodology-list.active .methodologyBullet {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .project-methodology-wrap .project-methodology-list.active .methodologyBullet::before {
    opacity: 1;
    transition-duration: 0.5s;
    left: 26px;
  }
  .project-methodology-wrap .project-methodology-list.active .methodologyBullet::after {
    border: 5px solid #fff;
    width: 21px;
    height: 21px;
    left: 28px;
  }
  .project-methodology-wrap .project-methodology-listCount, .project-methodology-wrap .methodologyBullet {
    position: absolute;
    left: 0;
  }
  .project-methodology-wrap .project-methodology-leftContent {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
  }
  .project-methodology-wrap .project-methodology-rightContent {
    position: relative;
    overflow: hidden;
  }
  .project-methodology-wrap .project-methodology-rightContent:before {
    content: "";
    height: 100%;
    width: 8px;
    position: absolute;
    background-color: #f1f2f6;
    left: calc((100% - 3 * 5rem) * .54 - -2px)!important
  }
  .project-methodology-wrap .project-methodology-rightContent .project-methodology-list {
    position: relative;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    padding-left: 80px;
    margin-bottom: 3rem;
  }
  .project-methodology-wrap .project-methodology-rightContent .project-methodology-list .project-methodology-listContent {
    opacity: 0.2;
    transition-duration: 0.4s;
    -webkit-transform: none;
    transform: none;
  }
  .project-methodology-wrap .project-methodology-rightContent .project-methodology-list.active .project-methodology-listContent {
    opacity: 1;
  }
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
      &lt;title&gt;Document&lt;/title&gt;
  
      &lt;script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
          crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
          crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
          crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script src="./index.js"&gt;&lt;/script&gt;
  
      &lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
          crossorigin="anonymous"&gt;
      &lt;link href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet"&gt;
  
      &lt;link rel="stylesheet" type="text/css" href="./style/index.css"&gt;
  
  
  &lt;/head&gt;
  
  &lt;body&gt;
      
      &lt;section class="project-methodology-wrap"&gt;
          &lt;div class="container"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-lg-6 col-md-6"&gt;
                      &lt;div class="project-methodology-leftContent"&gt;
                          &lt;div class="pr-5"&gt;
                              &lt;h2&gt;title&lt;/h2&gt;
                              &lt;p&gt;
                                  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quasi, eum deserunt perferendis asperiores esse temporibus est numquam repellat doloremque suscipit enim quod nisi nam cum ea quam expedita quidem velit.
                              &lt;/p&gt;
                          &lt;/div&gt;
                          &lt;img class="img-fluid pt-5 pb-5 pr-5" src="https://www.dropbox.com/s/5x8p2z5cvip5u38/chicago.jpg?dl=1"&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="col-lg-6 col-md-6"&gt;
                      &lt;div class="project-methodology-rightContent pt-5"&gt;
                              &lt;div class="project-methodology-list"&gt;
                                  &lt;div class="methodologyBullet"&gt;&amp;nbsp;&lt;/div&gt;
                                  &lt;div class="project-methodology-listContent"&gt;
                                      &lt;h4 class="project-methodology-listCount"&gt;1&lt;/h4&gt;
                                      &lt;h4&gt;
                                         Title
                                      &lt;/h4&gt;
                                      &lt;p&gt;
                                         Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ipsam, enim nam! Quisquam aliquid, harum reiciendis deleniti minima natus veniam. Fuga sunt rerum adipisci at et ad repellendus sint velit ducimus.
  
                                      &lt;/p&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="project-methodology-list"&gt;
                                  &lt;div class="methodologyBullet"&gt;&amp;nbsp;&lt;/div&gt;
                                  &lt;div class="project-methodology-listContent"&gt;
                                      &lt;h4 class="project-methodology-listCount"&gt;2&lt;/h4&gt;
                                      &lt;h4&gt;
                                         Title
                                      &lt;/h4&gt;
                                      &lt;p&gt;
                                         Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ipsam, enim nam! Quisquam aliquid, harum reiciendis deleniti minima natus veniam. Fuga sunt rerum adipisci at et ad repellendus sint velit ducimus.
  
                                      &lt;/p&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="project-methodology-list"&gt;
                                  &lt;div class="methodologyBullet"&gt;&amp;nbsp;&lt;/div&gt;
                                  &lt;div class="project-methodology-listContent"&gt;
                                      &lt;h4 class="project-methodology-listCount"&gt;3&lt;/h4&gt;
                                      &lt;h4&gt;
                                         Title
                                      &lt;/h4&gt;
                                      &lt;p&gt;
                                         Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ipsam, enim nam! Quisquam aliquid, harum reiciendis deleniti minima natus veniam. Fuga sunt rerum adipisci at et ad repellendus sint velit ducimus.
  
                                      &lt;/p&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/section&gt;
   
   
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>