JSFiddle - React, Tailwind, and code Playground
by TheJesper
HTML
<div class="flex container">
<div class="row">
<div class="column">
Some very long descriptional text and some extra words here and there so to say.
</div>
<div class="column">
123ÂŁ
</div>
</div>
</div>
CSS
.container{
border: 1px solid black;
width: 300px;
}
.container .column{
border: 1px solid magenta;
}
/* Second column */
.container .column+column{
}
/* Flex grid */
.flex {
display: flex;
}
.row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}
.column {
display: flex;
flex-direction: column;
flex-basis: 100%;
flex: 1;
}
.column-auto {
flex: 0;
}
.flex-wrap {
flex-wrap: wrap;
}
.flex-end {
align-items: flex-end;
}
.flex-start {
align-items: flex-start;
}
.align-items-center {
align-items: center;
}
.justify-content-center {
justify-content: center;
}
.flex-1 {
flex: 1;
}
.flex-2 {
flex: 2;
}
.flex-3 {
flex: 3;
}
.flex-4 {
flex: 4;
}
.flex-5 {
flex: 5;
}
.flex-6 {
flex: 6;
}
.flex-7 {
flex: 7;
}
.flex-8 {
flex: 8;
}
.flex-9 {
flex: 9;
}
.flex-10 {
flex: 10;
}
.flex-11 {
flex: 11;
}
.flex-12 {
flex: 12;
}
.flex-13 {
flex: 13;
}
.flex-14 {
flex: 14;
}
.flex-15 {
flex: 15;
}
.flex-16 {
flex: 16;
}
.flex-17 {
flex: 17;
}
.flex-18 {
flex: 18;
}
.flex-19 {
flex: 19;
}
.flex-20 {
flex: 20;
}