JSFiddle - React, Tailwind, and code Playground

by MAHESWARAN Subbu

HTML

<div class="p-pics">
		<div class="p-container">
		<h2 class="pa_h2">Head Text</h2>
		<div class="p-1">
			<a class="p_pic-1" href="index.html"></a>
			<div class="p_wrap">
			<h4 class="p-name">Some Text</h4>
			<p class="p-description">This is just a description, just a text, some text.</p>
			</div>
        </div>
		<div class="p-2">
			<a class="p_pic-2" href="index.html"></a>
			<div class="p_wrap">
			<h4 class="p-name">Some Text</h4>
			<p class="p-description">This is just a description, just a text, some text, text text text.</p>
			</div>
        </div>
		<div class="p-3">
			<a class="p_pic-3" href="index.html"></a>
			<div class="p_wrap">
			<h4 class="p-name">Some Text</h4>
			<p class="p-description">This is just a description, just a text, some text, text text text. Some very-very long text. Just a text, yeah.
			</div>
	   </div>
		<div class="p-4">
			<a class="p_pic-4" href="index.html"></a>
			<div class="p_wrap">
			<h4 class="p-name">Some Text</h4>
			<p class="p-description">This is just a description, just a text, some text, text text text.</p>
			</div>
		</div>
		</div>
	</div>

CSS

.p_pic-1 {
    background-image: url(http://www.templatemo.com/templates/templatemo_406_flex/images/member1.jpg);
	float: left;
    width: 122px;
    height: 122px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
}
.p_pic-2 {
    background-image: url(http://www.templatemo.com/templates/templatemo_406_flex/images/member1.jpg);
	float: left;
    width: 122px;
    height: 122px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
}
.p_pic-3 {
    background-image: url(http://www.templatemo.com/templates/templatemo_406_flex/images/member1.jpg);
	float: left;
    width: 122px;
    height: 122px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
}
.p_pic-4 {
    background-image: url(http://www.templatemo.com/templates/templatemo_406_flex/images/member1.jpg);
	float: left;
    width: 122px;
    height: 122px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
}

.p-1 {
	float:left;
	width:220px;
	height: 100%;
  
	background: #a1a1a1;
}
.p-2 {
	float: left;
	width:220px;
	height: 100%;
	margin-left: 20px;
  
	background: #a1a1a1;
}
.p-3{
	float:left;
	width:220px;
	height: 100%;
	margin-left: 20px;
 
	background: #a1a1a1;
}
.p-4 {
	float: left;
	width:220px;
	height: 100%;
	margin-left: 20px;
   
	background: #a1a1a1;
}

.p-pics {

	width: 940px;
	text-align:center;
	margin: 70px auto 0 auto;
    overflow: auto;
}

.p-name {
	display: block;
	float:left;
	width:100%;
	font-weight: bold;
	color: #333;
	font-size: 16px;
}

.p-description {
	font-weight: normal;
	color: #666;
	font-size: 16px;
	text-align: center;
	float:left;
	margin-top: 0;
}

.p_wrap {

  	width: 100%;  	  
	text-align:center;
  
}