JSFiddle - React, Tailwind, and code Playground

by Ting-Yuan Chang

HTML

<ul>
<li>
  <div class="imgWrap"><img src="http://via.placeholder.com/170x170"></div>
  <div class="vert name">
  <span>活泉深層洗面膠<br></span>
  </div>
  <div class="vert">
     <span>NT$ 599</span>
  </div>
</li>
<li>
  <div class="imgWrap"><img src="http://via.placeholder.com/70x42"></div>
  <div class="vert name">
  <span>活泉深層洗面膠2<br><span class="notice">不提供海外及外島配送</span></span>
  </div>
</li>
</ul>

CSS

body, html {
  background: white;
  width: 100%;
  margin: 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  border-top: solid 1px rgba(69, 66, 69, 0.1);
  overflow: auto;
}
.imgWrap {
  margin: 4px 25px 4px 30px;
  width: 70px;
  height: 70px;
  float: left;
}
img {
  max-width: 70px;
  max-height: 70px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: relative;
}
.vert {
  float: left;
  height: 78px;
  font-size:0;
}
.vert:before{
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 100%;
}
.vert > span {
  display: inline-block;
  font-family: NotoSansCJKtc;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: rgb(102, 88, 87);
  vertical-align: middle;
}
.vert.name {
  width: 200px;
}
.notice {
  font-family: NotoSansCJKtc;
  line-height: 1;
  letter-spacing: 1px;
  color: rgb(195, 0, 24);
  border-radius: 5px;
  padding: 5px 6px;
  border: solid 0.5px rgb(195, 0, 24);
  font-size:12px;
  transform: scale(0.833);
  transform-origin: 0 0; 
  display: inline-block;
}