Skip to content

hosnyben/ratio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

# ratio v1.1
Ratio it's an easy jQuery plugin to maintain the aspect ratio of a div depending to the height (or width) of it container.
Ratio is very useful for reponsive design.

==========================================================
For more suggestions you can contact me at :

- facebook : https://www.facebook.com/hosny707
- email : contact@hosnyben.me
- website : www.hosnyben.me
==========================================================

Plugin details :

-> Default settings : 
$(element).ratio({
	width : 1,
	height : 1,
	ref : "width"
})

-> Description : 
	width : set the width for your ratio
	height : set the height for your ratio
	ref : set if the block should depend of height or width of it container (width/height)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published