title: css arrows as a before and after pseudo element
body: <p>In my code below I have two arrows pointing at my SoMe div, the arrows are attached to the border as long as the page is not resized.</p>
  
  <p>When resized it becomes a space between the arrows and the border.
  I was hoping I could add the arrows as a before and after pseudo element, instead of using media queries. But I have not manged to make the arrows appear when changing the arrow classes to <code>div.front-some:before</code> and <code>div.front-some:after</code>.</p>
  
  <p><strong>Is this possible to achieve at all, or is media queries my only option?</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>  body {
     background: green;
   }
  
   h1.title {
     color: red;
     text-align: center;
     text-transform: uppercase;
     letter-spacing: 20px;
     background: green;
     max-width: 70%;
     margin: -40px auto 0 auto;
   }
  
   div.inner {
     border: 4px solid red;
     color: #fff;
     padding: 15px 50px 50px 50px;
     margin-top: 100px;
     box-sizing: content-box;
   }
  
   div.some {
     text-align: center;
     background: green;
     max-width: 40%;
     margin: 0 auto -60px auto;
   }
  
   .arrow-right {
     border-right: 5px solid red;
     border-bottom: 5px solid red;
     width: 25px;
     height: 25px;
     transform: rotate(-45deg);
     margin-bottom: -25px;
     margin-left: 26.5%;
   }
  
   .arrow-left {
     border-left: 5px solid red;
     border-top: 5px solid red;
     width: 25px;
     height: 25px;
     transform: rotate(-45deg);
     margin-top: 37px;
     margin-right: 26.5%;
     float: right;
   }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="inner"&gt;
  
  
    &lt;h1 class="title"&gt;Hello World&lt;/h1&gt;
  
  
    &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It
      has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
      publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;
    &lt;br&gt;
  
    &lt;div class="arrow-right"&gt;&lt;/div&gt;
    &lt;div class="some"&gt; SoMe
  
    &lt;/div&gt;
    &lt;!-- .social-icons --&gt;
    &lt;div class="arrow-left"&gt;&lt;/div&gt;
  
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>