title: How to get the gradient color from top right to bottom left corner
body: <p>I have trying to get the <code>css</code> gradient as like in the below bootstrap icon.</p>
  <p><a href="https://i.stack.imgur.com/aCi4n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aCi4n.png" alt="logo" /></a></p>
  <p>I just want two solutions from this code.</p>
  <blockquote>
  <p>1.)How to make gradient color as like in icon(From top right to bottom left)?</p>
  <p>2.)Vertical alignment of text within div(Possibility without using flex property)</p>
  </blockquote>
  <p>Thanks in advance :)
  <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:100px;
    height:100px;
    background: -webkit-linear-gradient(left, #2F2727, #1a82f7);
    border-radius:4px;
  }
  div p{
    color:white;
    text-align:center;
    text-transform:uppercase;
    font-weight:bold;
    font-size:42px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
   &lt;p&gt;
     b
   &lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>