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
- Host: GitHub
- URL: https://github.com/tilap/jquery-fillparent
- Owner: tilap
- License: mit
- Created: 2014-09-07T20:11:31.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-07T21:46:14.000Z (almost 12 years ago)
- Last Synced: 2025-03-05T11:02:35.887Z (over 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.