1.0.1 • Published 9 years ago

fit-parent-to-child v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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:

  1. parentSelector: Any valid CSS selector.
  2. childSelector: Any valid CSS selector. If the child is not inside the parent, nothing will happen.
1.0.1

9 years ago

1.0.0

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago