<div class=grid>
<img src=tree.png>
<p><span>Supertrees are tree-like structures that dominate Gardens by the Bay. They're vertical gardens that perform a multitude of functions, working as environmental engines for the gardens.</span></p>
<img src=tree.png>
<p><span>Supertrees are tree-like structures that dominate Gardens by the Bay. They're vertical gardens that perform a multitude of functions, working as environmental engines for the gardens.</span></p>
</div>
span {
background: rgb(230, 157, 231);
border-radius: 50% 0%;
box-shadow: 0 0 6px rgb(41, 185, 82), 0 0 3px beige inset;
padding: 0.5em 1.3em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
p:nth-of-type(2) span {
background-clip: content-box;
}
/* rules for styling
************************/
div {
width: 600px;
display: grid;
margin: 60px auto auto auto;
grid-template-columns: max-content auto;
grid-gap: 5vw;
align-items: center;
}
img {
width: 15vw;
border: 2px solid rgb(230, 157, 231);
border-radius: 50%;
filter: drop-shadow(0 0 20px rgb(230, 157, 231));
}
p {
font: 12pt/3em satisfy;
}
@media (max-width: 700px) {
div {
width: 80vw;
}
img {
width: 25vw;
}
p {
font-size: 10pt;
}
}
This Pen doesn't use any external JavaScript resources.