Skip to content

garyharan/jquery-clonePosition-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Clone the position of another element easily.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published