JSFiddle - React, Tailwind, and code Playground
HTML
<div class="catalog-item">
<div class="left">
<div class="img"></div>
<div class="text">
<span class="title">{Title}</span><br />
<span class="type">{Product_type}</span>
</div>
</div>
<div class="right">
<div class="price">{Price}</div>
<div class="button">
<button class="integrated-button">{PButton}</button>
</div>
</div>
</div>
CSS
.catalog-item {
font-size: 75%;
}
.catalog-item .left {
float: left;
display: -webkit-box;
display: box;
width: 10%;
}
.catalog-item .right {
float: right;
display: -webkit-box;
display: box;
}
.catalog-item .img {
-webkit-box-ordinal-group: 1;
box-ordinal-group: 1;
margin-right: 8px;
width: 50px;
height: 50px;
background-image: url("http://www.google.com/favicon.ico");
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
}
.catalog-item .text {
-webkit-box-ordinal-group: 2;
box-ordinal-group: 2;
margin-top: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.catalog-item .text .title {
font-weight: bold;
}
.catalog-item .text .type {
font-style: italic;
}
.catalog-item .price {
-webkit-box-ordinal-group: 1;
box-ordinal-group: 1;
margin-top: 12px;
text-align: right;
padding-right: 10px;
font-size: 150%;
}
.catalog-item .button {
-webkit-box-ordinal-group: 2;
box-ordinal-group: 2;
}
.catalog-item .button .integrated-button {
width: 80px;
height: 50px;
font-size: 110%;
line-height: 20px;
color: #008822;
}