JSFiddle - React, Tailwind, and code Playground

by davidpauljunior

HTML

<div class="video-box">
  <div class="video-box-content-holder" data-createtime="1385208101000" data-viewcounts="559">
    <div class="img" style="max-height:135px">
      <a href="/news/video/typhoon-haiyan-politics/897416.html">

        <img src="http://i58.tinypic.com/2uj2o3t.jpg" alt="" width="240" height="135" />
        <span class="play-ico">play</span> 
    <span class="video-txt">01:54</span>
    </a> 

        <span class="add-txt">Asia Pacific</span>
        </a>
    </div>
    <div class="txt-box">
        <!-- the class toggle 2 is for 2nd component, diff css-->
    <div class="maintainhere-browse">
    <div id="browsevideos_1" class="toggle2">
                                                                                                            
    <div class="addtoplaylist-video">
         <img src="http://i61.tinypic.com/rtdv2b.png" width="12" height="11" alt="add" class="addplaylisticonimg-browse">
         <a href="#"><span class="addtoplaylist-videotext"> Add To Playlist!</span></a>
         </div>

    <div class="viewplaylist-video">
       <img src="http://i59.tinypic.com/2n98as.png" width="17" height="9" alt="viewicon" class="viewplaylisticonimg-browse">
       <a href="#"><span class="viewplaylist-videotext"> View Playlist!</span></a>
       
        </div>
</div>
</div><!--endofmaintainhere-->
      <div class="title">
        <h3 style="color:white;"><a href="/news/video/typhoon-haiyan-politics/897416.html" class="truncate-video-title" title="Typhoon Haiyan: Politics gets in the way of saving lives  ">Typhoon Haiyan: Politics gets in the way of saving lives i want the text to wrap around </a></h3>
        <span class="date" style="color:white;">23 Nov 2013</span>  
          
      	</div> <!-- title -->   
    

    </div>


  </div>
</div>

CSS

.video-box{
    float: left;
width: 31%;
max-width: 240px;
height: 214px;
background: #232323;
margin: 0 1% 2%;
}

.video-box h3 {
/*display: table-cell; Not good */
vertical-align: middle;
margin: 0;
font-size: 1.0em;
line-height: 1.2;
}

.addtoplaylist-videotext:before{
	  border: solid;
    border-color: #222 transparent;
    border-width: 6px 6px 0 6px;
    bottom: -8px;
    content: "";
    left: 80%;
    position: absolute;
	display: inline-block;
    z-index: 99;
	border-top: 10px solid rgba(0, 0, 0, 0.6);
	
	
}

a{
    color:#FFFFFF;
}
.video-txt {
position: absolute;
bottom: 0;
right: 0;
font-size: 1.1em;
line-height: 16px;
background: #000;
padding: 0 3px;
color: #fff;
}

.addtoplaylist-videotext{	
 background-color: #ffffff;
   background-color: rgba(0, 0, 0, 0.6);
	border-color: rgba(0, 0, 0, 0.6);
	border-right-color: #ffffff;
    border-radius: 5px;
    top: -50px;
    color: #ffffff;
     left: -100px;
    padding: 5px 5px;
    position: relative;
    z-index: 99;
    width: 120px;
	height:15px;
	text-align:center;
		-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
		filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#1e78a0', endColorstr='#1e78a0');
	box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
	cursor:pointer;
	display:none;
}

.viewplaylist-videotext:before{
	  border: solid;
    border-color: #222 transparent;
    border-width: 6px 6px 0 6px;
    bottom: -8px;
    content: "";
    left: 80%;
    position: absolute;
	display: inline-block;
    z-index: 99;
	border-top: 10px solid rgba(0, 0, 0, 0.6);
	
	
}

.viewplaylist-videotext{	
 background-color: #ffffff;
   background-color: rgba(0, 0, 0, 0.6);
	border-color: rgba(0, 0, 0, 0.6);
	border-right-color: #ffffff;
    border-radius: 5px;
    top: -50px;
    color: #ffffff;
     left: -100px;
    padding: 5px 5px;
    position:...