JSFiddle - React, Tailwind, and code Playground

by Dhanck

HTML

<div class="row">
        <div class="user" id="gwt-debug-fileThumbnail_id">
            <img class="fileThumbnailImageInternal-Image" id="gwt-debug-fileThumbnailImageInternal_id" src="http://VSHP27:8080/VermilionWeb/images/Vermilion Logo.gif">
            <div class="filemanager-info">
                <div class="fileNameLabel-Label" id="gwt-debug-fileNameLabel_id" dir="ltr">Obligations.ffffffffffffffffffffff-ffffffffffffffffffffffffffffffffffffffffffffffffff_fffffffffffffffffffffffffffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff-fffffffffffffffffffffffffffffff.xls
                </div>
            </div>
        </div>

    <div class="user" id="gwt-debug-fileThumbnail_id">
        <img class="fileThumbnailImageInternal-Image" id="gwt-debug-fileThumbnailImageInternal_id" src="http://VSHP27:8080/VermilionWeb/images/Vermilion Logo.gif">
        <div class="filemanager-info">
            <div class="fileNameLabel-Label" id="gwt-debug-fileNameLabel_id" dir="ltr">Obligations.xls
            </div>
        </div>
    </div>
         <div class="user" id="gwt-debug-fileThumbnail_id">
        <img class="fileThumbnailImageInternal-Image" id="gwt-debug-fileThumbnailImageInternal_id" src="http://VSHP27:8080/VermilionWeb/images/Vermilion Logo.gif">
        <div class="filemanager-info">
            <div class="fileNameLabel-Label" id="gwt-debug-fileNameLabel_id" dir="ltr">Obligations.xls
            </div>
        </div>
    </div>
              <div class="user" id="gwt-debug-fileThumbnail_id">
        <img class="fileThumbnailImageInternal-Image" id="gwt-debug-fileThumbnailImageInternal_id" src="http://VSHP27:8080/VermilionWeb/images/Vermilion Logo.gif">
        <div class="filemanager-info">
            <div class="fileNameLabel-Label" id="gwt-debug-fileNameLabel_id" dir="ltr">Obligations.ffffffffffffffffffffff-ffffffffffffffffffffffffffffffffffffffffffffffffff_fffffffffffffffffffffffffffffffffffffffffffffffffffffffff...

CSS

*, html, body {
    margin:0;
    padding:0;
}
.user {
    width:150px;
    max-height:300px;
    height:100%;
    margin:30px;
    overflow:hidden;
    float:left;
}
.fileThumbnailImageInternal-Image {
    width:100%;
}
.filemanager-info {
    background-color:#fff;
    width:200px;
}
.fileNameLabel-Label {
    width:150px;
    height:100px;
    overflow:hidden;
    white-space:no-wrap;
    text-align:center;
}
.fileNameLabel-Label {
    margin: 30px 0;
    line-height: 15px;
    overflow: hidden;
    position: relative;
    max-height: 45px;
    /*display ellipsis after 3 lines*/
}
.fileNameLabel-Label:before {
    background: #fff;
    bottom: 0;
    position: absolute;
    right: 0;
    content:'\2026';
}
.fileNameLabel-Label:after {
    content:'';
    background: #fff;
    position: absolute;
    height: 50px;
    width: 100%;
    z-index: 1;
}