An open API service indexing awesome lists of open source software.

https://github.com/tilap/jquery-fillparent

jQuery plugin to make a dom element fill its parent
https://github.com/tilap/jquery-fillparent

Last synced: over 1 year ago
JSON representation

jQuery plugin to make a dom element fill its parent

Awesome Lists containing this project

README

          

# jQuery fillparent

Basic jQuery plugin making a dom element fill its parent. Usefull for images for example.

## Usage

Include the ```jquery.fillparent.min.js```file.

Set some css on your dom:
```
.parent{
potision:relative/fixed/absolute;
}
.parent img.example{
position:absolute;
}
```

Apply plugin

```
$('img.example').fillparent();
```

Apply on div with an image, use it on window resize for continuously stretching.