Answer the question
In order to leave comments, you need to log in
How to draw a slash line in HTML?
Hey!
I have a field (div) on which nodes are placed (many different divs). Between the nodes you need to "stretch the strings", i.e. draw oblique lines. Or not oblique, but Z-shaped. All this in jQuery.
Question: What is the best way to do this? Those. Recommend a good and lightweight library.
Thank you!
Answer the question
In order to leave comments, you need to log in
Canvas is our everything.
www.html5dev.ru/canvas-api/2011/01/10/izuchaem-canvas-urok-2---risuem-linii-i-krivye.html
<style>
hr {
-webkit-transform: rotate(120deg);
-moz-transform: rotate(120deg);
-ms-transform: rotate(120deg);
-o-transform: rotate(120deg);
}
</style>
<hr>
I won’t tell you the library, but I think the best option is canvas
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question