1.0.1 • Published 7 years ago

fit-parent-to-child v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 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

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