Add vertical line

how can i add vertical line like in image i have tried it by using border-left but it height become equal to the div height check the attach image and here is my code link"https://play.tailwindcss.com/NS1BlJ5Wh3?file=css
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
No description
6 Replies
ChooKing
ChooKing9mo ago
Add either a left or right border.
Moni
Moni9mo ago
i add it but it takes the div height i want small vertical line
ChooKing
ChooKing9mo ago
Make an extra div to hold the two p tags and put the border on that.
<div class="border-l-4 px-4">
<p style="font-weight: 500; font-size: 14px;color: #90958d; ">Cliente sin cita previa</p>
<p style="color: #d3cdc3;">Afeltado</p>
</div>
<div class="border-l-4 px-4">
<p style="font-weight: 500; font-size: 14px;color: #90958d; ">Cliente sin cita previa</p>
<p style="color: #d3cdc3;">Afeltado</p>
</div>
Witcher
Witcher9mo ago
You should use ::pseudo element ::after ::before 👍
ericaldo
ericaldo9mo ago
i would just use a svg of a line
ceispy
ceispy9mo ago
Absolute positioning ::before or ::after is quick and easy