How to create a line between grid col

we can create col using grid but i dont how to deal with that vertical line in between can you explain?
No description
5 Replies
MarkBoots
MarkBoots3mo ago
yea, there is not something native to use. you can do it with pseudo elements, background gradients or just borders on the childs. depends a bit on what the exact grid looks like
ἔρως
ἔρως3mo ago
what's the intended final result of this?
MarkBoots
MarkBoots3mo ago
with pseudo on childs it could be something like this https://codepen.io/MarkBoots/pen/YzMaJJr
MarkBoots
MarkBoots3mo ago
I just rembered, there is also css column which has column-rule. So that could be an option as well https://developer.mozilla.org/en-US/docs/Web/CSS/column-rule
MDN Web Docs
column-rule - CSS: Cascading Style Sheets | MDN
The column-rule shorthand CSS property sets the width, style, and color of the line drawn between columns in a multi-column layout.
KRITIX
KRITIX3mo ago
ohh, thank you