Stupid simple, right? It is! But it's fun just to think about for a few minutes and count a bunch of different ways we could do it. And what do I mean by a line anyway? We'll mostly talk about a 1px solid horizontal line, but we'll veer off a little bit and talk about other lines. Can't CSS draw a line from any point to any point? Not really, actually, unless we get pretty fancy. SVG totally can though.
Watch video How to Draw a Line with CSS online without registration, duration hours minute second in high quality. This video was added by user CSS-Tricks 22 September 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 25,332 once and liked it 254 people.