title: CSS triangle containing text
body: <p>I have a weird problem at hand and I am struggling to find a solution.<br><br></p>
  
  <p>I have created a triangle <code>&lt;div&gt;</code> "container" using only CSS but what I would like now is to insert some text inside the container.<br>
  The solution I am aiming for has to contain the text within the boundaries of the triangle no matter how much text is inserted as I am looking to create thumbnails.<br>
  An example can be found <a href="http://jsfiddle.net/itsrron/HJBxG/" rel="noreferrer">here</a> [note; this example is very basic and only shows the way I have chosen to create the triangle]</p>
  
  <p>Pushing it a little further, I want to create one triangle facing up and one facing down and the text has to be at the base of each one, so for the 1st triangle the text will be at the bottom and for the 2nd at the top, plan B is just to center the text within the triangle both vertically and horizontally.</p>
  
  <p><strong>CSS:</strong></p>
  
  <pre><code>.up {
      text-align:right;
      width: 0px;
      height: 0px;
      border-style: inset;
      border-width: 0 100px 173.2px 100px;
      border-color: transparent transparent #007bff transparent;
      float: left;
      transform:rotate(360deg);
      -ms-transform:rotate(360deg);
      -moz-transform:rotate(360deg);
      -webkit-transform:rotate(360deg);
      -o-transform:rotate(360deg);
  }
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div class="up"&gt;
      &lt;p&gt;some information text goes here&lt;p&gt;
  &lt;/div&gt;
  </code></pre>