Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 510 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 510 Bytes

jQuery.clonePosition.js

What is it for?

Make one HTML element match the position and size of another.

jQuery.clonePosition(element, [options])

Copies height/width and left/top of element.

$('#myDiv').clonePosition('#anotherDiv');

Also accepts options object with the following parameters:

{
  cloneWidth: boolean,
  cloneHeight: boolean,
  offsetLeft: integer,
  offsetTop: integer
}

Questions and feedback