muralibobby2015 17 Posting Pro

I am working on custom form builder for one of my clients where we have functionality like drag fields , resize, apply css like borders and align fields using jquery. i am done with dragging,resizing and css but one of the major requirement is to apply "google drawing red rule " as we have in google drawing.

i have attached a screencast video as well as screencast images to clarify what red rule is.

http://screencast.com/t/ow6s5zKt9P

http://screencast.com/t/e1SL26gFJT8v

http://screencast.com/t/QAJGB7PzEwB

http://screencast.com/t/OoM6BqAH

Video:

http://screencast.com/t/ORaqAVWX4XGu

As can be seen in the above screen casts when ever we drag/draw a field and overlap with other fields it highlights the vertical and horizontal center of the dragging field or the overlap field in Red color (hence the title red rule). it also highlights the borders of any field overlapping the other field or moving out of the canvas area. it also shows whether field can be inscribed inside in another field while dragging.

I am looking at some one who can guide me in correct direction to acchive this functionality. i need to apply this red rule effect other than drawing or any thing. please sugguest any possibilities.

Any help is greatly appreciated.