I am struggling to add a one line description to each flex-child using the fade()
value, but it seems to not be working as expected.
.flex-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
flex-direction: row;
}
.flex-child {
border: 1px black solid;
width: 40%;
max-height: 3rem;
padding: 10px;
margin: 5px;
overflow: hidden;
}
.flex-child p {
font-weight: bold;
font-size: 1rem;
overflow: hidden;
text-align: justify;
white-space: nowrap;
text-overflow: fade(10%);
}
<div class="flex-container">
<div class="flex-child">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</p>
</div>
<div class="flex-child">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</p>
</div>
</div>
I am expecting the text to fade and become transparent. Is there a misunderstanding with the value used?