title: CSS Linear Gradient X to Y then Y back to X
body: <p>I've created a linear gradient with following CSS code for a linear gradient:</p>
  
  <pre><code>background-color: #2c2c2c;
  background-image: -moz-linear-gradient(top, #444444, #222222);
  background-image: -ms-linear-gradient(top, #444444, #222222);
  background-image: -webkit-gradient(linear, 0 0, 0 0, from(#444444), to(#222222));
  background-image: -webkit-linear-gradient(top, #444444, #222222);
  background-image: -o-linear-gradient(top, #444444, #222222);
  background-image: linear-gradient(top, #444444, #222222);
  background-repeat: repeat-x;
  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#444444', endColorstr='#222222', GradientType=0);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/s8dmR.png" alt="enter image description here"></p>
  
  <p>I'm wondering how can I get this same gradient, from #444444 to #222222, to go up until the white arrow, stop, and then proceed to the bottom edge starting from #222222 and back to #444444 in the same manner above. </p>
  
  <p>Thank you. </p>