I'm currently working on a project to create a social media platform similar to Twitter. One thing I'm trying to accomplish is to draw a vertical line between two images, like the one in this tweet from PewDiePie, and have it centered between two separate <div>
elements.
So far, I've attempted placing a
<div class="vertical-line"></div>
after the image <div>
.
.vertical-line {
border-width: 2px;
border-top-left-radius: 2px;
border-color: #1da1f2;
border-style: solid;
}
After implementing this CSS, the result looked like this.