<div class=grid>
<img src=bridge.png>
<p><span>The Malaysia–Singapore Second Link is a bridge connecting Singapore and Johor, Malaysia. In Singapore, it is officially known as the Tuas Second Link.</span></p>
</div>
span {
border: 2px solid;
border-image: linear-gradient(45deg, #eeb075, #2d4944) 1;
background: #eef6f3;
padding: 0.5em 1.3em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
/* rules for styling
**************************/
div {
width: 600px;
margin: 60px auto auto auto;
display: grid;
grid-template-columns: max-content auto;
grid-gap: 5vw;
align-items: center;
}
img {
width: 15vw;
border: 2px solid #eeb075;
border-radius: 50%;
filter: drop-shadow(0 0 20px #eeb075);
}
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.