JSFiddle - React, Tailwind, and code Playground
HTML
<div class="product-wrap first">
<div class="item">
<div class="product-image"><a href="#">Img area</a>
</div>
<div class="product-content">
<div class="product-name"> <a class="fontcolor" href="#">Motorcycle Leather Boots (4Riders Boots Always)</a>
</div>
<div class="price-box">
<p class="special-price"><span class="price" id="product-price-77">£53.68</span>
</p>
<p class="old-price"><span class="price" id="old-price-77">£84.15</span>
</p> <span class="div-discount"><b>You save </b> <em><i>36.21</i><u>%</u></em></span>
</div>
<div class="clr"></div>
</div>
</div>
</div>
CSS
* {
margin:0px;
padding:0px;
box-sizing:border-box;
}
a {
text-decoration: none;
color: #666;
}
.product-wrap {
}
.product-wrap .item:after{ content:""; display:block; clear:both; height:0;}
.product-wrap .item .product-image {
float: left;
border: 1px solid #e2e2e2;
margin-right: 15px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
width:86px; height:86px; line-height:84px; text-align:center;
}
.product-wrap .item .product-image img {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.product-wrap .item .product-image:hover{ border-color: #b50016; }
.product-wrap .product-name {
line-height: 16px;
}
.product-name a {
font-weight: 400;
}
.product-wrap .item .price-box {
margin-top: 6px;
overflow: hidden;
}
.price-box .special-price {
float: left;
color: #b50016;
line-height: 16px;
}
.product-wrap .item .price-box .old-price {
float: left;
margin-left: 10px;
position: relative;
padding: 0 5px;
}
.div-discount {
color: #b50016;
}
.product-content .price-box .div-discount { float: left;}
.product-wrap .item .price-box .old-price:before {
content:"";
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 1px;
background: #666;
margin-top: 2px;
}
span.div-discount {
/* display: block; */
clear: left;
display: block;
}