title: HTML - Insert text inside div container
body: <p>I am using div because I want to colour not the whole border but the external corner, it works but now what I want to do is to add a text/link at the centre of the four corners.</p>
  
  <p>If I am going to do that the text stays quadruple on each corner and change even the position of the div corner. </p>
  
  <p>Is there a better way to do that? </p>
  
  <p>It seems simple as it is but I have been in stock with this for days, this is my code in a snippet:</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,
  body {
    color: #fff;
    background: #000;
    width: 100%;
  }
  
  .wholeDivDom {
    margin: 0.7%;
  }
  
  .outer {
    width: 350px;
    height: 120px;
    background: black;
    position: relative;
  }
  
  div:before,
  div:after {
    content: "";
    position: absolute;
    height: 20%;
    width: 10%;
  }
  
  .outer:after {
    content: "";
    right: 0;
    border-right: 3px solid #fff;
    border-top: 3px solid #fff;
  }
  
  .outer:before {
    border-left: 3px solid #fff;
    border-top: 3px solid #fff;
  }
  
  .inner:before {
    bottom: 0;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
  }
  
  .inner:after {
    bottom: 0;
    right: 0;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body &gt;
    &lt;header&gt;
      &lt;div class="wholeDivDom"&gt;
        &lt;div class="outer"&gt;
          &lt;div class="inner"&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/header&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>