border-bottom in tailwind css takes length of the parent element
12:06 24 Dec 2022

i have a div with a few elements in it, and i want to achieve something like this

example

however when i add border-bottom to my h5, the border takes the length of the div not the h5 element like so

second example

this is the code or tailwind classes that i have used

     
BLOG'S

Insights

Ut enim ad minim veniam, laboris nisi ut aliquip ex ea commodo consequat.

html tailwind-css tailwind-css-3