1.0.1 • Published 7 years ago
fit-parent-to-child v1.0.1
Dynamically set the height of an HTML element to that of a child element.
Installation
npm install --save fit-parent-to-child
Usage
import fitParentToChild from 'fit-parent-to-child';
window.addEventListener('load', () => fitParentToChild({
parentSelector: '.parentElement',
childSelector: '.childSelector'
}));
The Settings Object.
The fitParentToChild function takes a single object with two required parameters:
parentSelector
: Any valid CSS selector.childSelector
: Any valid CSS selector. If the child is not inside the parent, nothing will happen.
1.0.1
7 years ago
1.0.0
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago