JSFiddle - React, Tailwind, and code Playground
by 규연 황
HTML
<div class="book">
<div class="description">It’s then up to you to handle the text inside the item. I’d suggest wrapping the word. So your CSS would look like this:</div>
<div class="buy">buy now sjfdsjfsd</div>
</div>
<div class="book">
<div class="description">It’s then up to you to handle the text inside the item. I’d suggest wrapping the word. So your CSS would look like this:</div>
<div class="buy">buy now</div>
</div>
<p>min-width : 0은 특이사항을 해결하기 위한 몇 가지 핵은 아니며 사양에서 제안한 동작입니다.</p>
https://hackernoon.com/11-things-i-learned-reading-the-flexbox-spec-5f0c799c776b
CSS
* {padding:0;margin:0;}
body {
background:green;
}
.book {width:100%;
background:#eeeeee;
/*display: -webkit-box;*/
display: flex;
}
.book .description {
font-size: 30px;
background: #ff6600;
min-width: 0;
word-wrap: break-word;
/*-webkit-box-flex: 1;*/
}
.book .buy {
background:red;
/*-webkit-box-flex: 0;*/
margin-left: auto;
flex: none;
text-align: center;
align-self: center;
}