2
Answers

How to draw a connecting line between two div ?

Surya Kant

Surya Kant

8y
688
1

Hii all;

I want to draw line between two div like like this http://jsfiddle.net/URWru/ ,

But their they uses canvas to draw a line; but i want that same line by using normal html div.

for eg :- I have a div when i click inside the div then a line start from their and when i mouse move then line will increase width (like the above Link http://jsfiddle.net/URWru/) and when my mouse pointer on other div and i click mouse button then the two div connected by that line.

Note :- without using any plugin manually through java script.

Is it possible to do this?

Please suggest me ?

Thanks;


Answers (2)