JSFiddle - React, Tailwind, and code Playground
by Andreu
HTML
<div class="item"><div class="table"><div class="table-row"><a class="h-padding v-padding" href="https://fotomasterltd.net/products/beauty-mirror-booth/"><h2>Beauty Mirror Booth</h2><img data-lazy-load-status="final" data-lazy-load-type="set-src" data-lazy-load-source-intermediate="https://fotomasterltd.net/wp-content/uploads/beauty-mirror-booth-illustration-006-31x20.png" data-lazy-load-source-final="https://fotomasterltd.net/wp-content/uploads/beauty-mirror-booth-illustration-006-768x488.png" title="Beauty Mirror Booth 3D Render" alt="Beauty Mirror Booth: 3D Render" src="https://fotomasterltd.net/wp-content/uploads/beauty-mirror-booth-illustration-006-768x488.png"><p>The Beauty Mirror Booth is a beautifully designed magic mirror photo booth with a chic style, perfect for the events market. With its cutting edge software and portable build you will find beauty in both its features and its form.</p></a><div class="table-cell"><div class="slide-able no-select"><div class="video slide cover clip-right" data-active=""><video data-lazy-load-status="final" data-lazy-load-type="append-source-tags" data-lazy-load-parameters="[{"type":"video/webm","src":"https://fotomasterltd.net/wp-content/uploads/2019-01-12-foto-master-beauty-mirror-booth-highlights.webm"},{"type":"video/mp4","src":"https://fotomasterltd.net/wp-content/uploads/2019-01-12-foto-master-beauty-mirror-booth-highlights.mp4"}]" loop="" muted="" webkit-playsinline="" playsinline="" autoplay="" data-autoplay="" preload="none" title="Beauty Mirror Booth: Highlights Video"><source src="https://fotomasterltd.net/wp-content/uploads/2019-01-12-foto-master-beauty-mirror-booth-highlights.webm" type="video/webm"><source src="https://fotomasterltd.net/wp-content/uploads/2019-01-12-foto-master-beauty-mirror-booth-highlights.mp4" type="video/mp4"></video></div></div></div></div></div></div>
CSS
section.collection.products.layout-a>.item {
border-bottom: 1px solid #808080;
}
section.collection.products.layout-a>.item>div.table {
display: table;
width: 100%;
}
section.collection.products.layout-a>.item:nth-child(even)>div.table {
direction: rtl;
}
section.collection.products.layout-a>.item>div.table>div.table-row {
display: table-row;
width: 100%;
}
section.collection.products.layout-a>.item>div.table>div.table-row>a:nth-child(1) {
width: 45%;
padding-right: 2vw;
text-align: left;
}
section.collection.products.layout-a>.item:nth-child(even)>div.table>div.table-row>* {
direction: ltr;
}
section.collection.products.layout-a>.item>div.table>div.table-row>* {
display: table-cell;
vertical-align: top;
}
button, a[href], input[type=submit], [data-click-trigger], .clickable {
cursor: pointer;
background-color: transparent;
}
.v-padding {
padding-top: 2rem;
padding-bottom: 2rem;
}
section.collection.products.layout-a>.item>div.table>div.table-row>a:nth-child(1)>img {
width: 100%;
min-height: 8rem;
}
[data-lazy-load-status=final] {
filter: initial;
transition: opacity .3s,filter .3s;
-o-transition: opacity .3s,filter .3s;
-moz-transition: opacity .3s,filter .3s;
-webkit-transition: opacity .3s,filter .3s;
}
section.collection.products.layout-a>.item>div.table>div.table-row>a:nth-child(1)>p {
margin-top: 1rem;
line-height: 1.6em;
font-size: 1.1rem;
}
{
box-sizing: border-box;
margin: 0;
padding: 0;
vertical-align: baseline;
font-size: 1rem;
font: inherit;
word-break: break-word;
border: 0;
}