# jquery.stretch

> To fill the void created by the missing 'width: stretch' css property.

Latest version **0.1.1** (published 2014-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install jquery.stretch
pnpm add jquery.stretch
yarn add jquery.stretch
bun add jquery.stretch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-08-15 |
| First published | 2014-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rotunda Software |
| Maintainers | davidbeck |
| Keywords | jquery, strech |

## Links

- npm: https://www.npmjs.com/package/jquery.stretch
- Repository: git@github.com:rotundasoftware/jquery.stretch
- Homepage: https://github.com/rotundasoftware/jquery.stretch
- Issues: https://github.com/rotundasoftware/jquery.stretch/issues
- npm.io page: https://npm.io/package/jquery.stretch

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-08-15
- 0.1.0 — 2014-08-14

## README

Man, if only this was native in css, but it isn't, so here is a jquery plugin for it.

Say we start with a parent div that contains three children. All three have `display: inline-block` style, so they are all lined up next to each other, with some extra space on the right.

![](https://github.com/rotundasoftware/jquery.stretch/blob/master/docs/diagram1.png)

Now we do

```
$( '.rect3' ).stretch();
```
And we end up with

![](https://github.com/rotundasoftware/jquery.stretch/blob/master/docs/diagram2.png)

Similarly, we could strech one of the other two inner divs so that they take up all the available space.

Couple notes:

* Ignores hidden elements.
* `$.fn.stretchVertically` is also installed, which works analogously to `$.fn.stretch`. When stretching vertically, all elements must have `display: block` styling.
* Works very well, most of the time.

---
_Source: https://npm.io/package/jquery.stretch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
