JSFiddle - React, Tailwind, and code Playground
by salitrapraveen
HTML
<div class="model_card">
<div class="module_model_cards">
<div class="model_name amount">Camaro</div> <a id="BRZ" data-modelcode="BRZ" data-modelname="BRZ" data-modelyear="2013" class="vehicle_anchor" href="/build-your-own/brz.html">
<img width="170px" height="85px" src="http://media.carbook.com/autoBuilderData/stockPhotos/14731.jpg">
</a>
<div class="price_gas">
<div class="price">
<div>Up to</div><span class="starting">Starting at</span><span class="amount">$25,495*</span>
</div>
<div class="gas"><span class="highway">34</span><span class="city">/25^</span>
</div>
</div>
</div>
<!-- .module_model_cards -->
</div>
<br><br><br>
<span class="vehicle-button" >Window Sticker</span>
CSS
.model_card {
cursor: pointer !important;
float: left;
margin: 0 25px 10px 0;
position: relative;
border: 1px solid #d6d6d6;
height: 170px;
background: white;
width: 170px;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
line-height: normal;
padding: 10px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
-ms-border-radius: 6px;
-o-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: rgba(220, 220, 220, 0.25) 0px 5px 3px;
-moz-box-shadow: rgba(220, 220, 220, 0.25) 0px 5px 3px;
box-shadow: rgba(220, 220, 220, 0.25) 0px 5px 3px;
z-index: 99;
}
.model_card:hover {
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 0 20px;
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 0 20px;
box-shadow: rgba(0, 0, 0, 0.4) 0 0 20px ;
}
.model_card .model_name {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: normal;
line-height: normal;
color: #56564c !important;
padding: 1px 0 0 0;
}
.module_model_cards a img {
position: relative;
}
.module_model_cards .price {
margin: 5px 0 0 0;
width: 85px;
float: left;
overflow: hidden;
color: #999999;
}
.module_model_cards .price_gas .price div {
height: 0px;
left: 118px;
position: absolute;
background: none;
width: 40px;
}
.module_model_cards .starting {
margin-top: 2px;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
line-height: normal;
color: #56564c;
float: left;
}
.module_model_cards .amount {
float: left;
clear: both;
color: #56564c;
font-family: Arial, Helvetica, sans-serif;
font-size: 19px;
font-style: normal;
font-weight: bold;
line-height: normal;
}
.module_model_cards .gas {
border-left: 1px solid #d8d8d8;
padding: 0px 0px 0px 0px;
height: 24px;
width: 80px;
margin: 5px 0 0 0;
padding-bottom: 3px;
line-height: 34px;
float:...