Skip to content

Instantly share code, notes, and snippets.

View drewminns's full-sized avatar
🤙
I do stuff

Drew Minns drewminns

🤙
I do stuff
View GitHub Profile
@Chrisedmo
Chrisedmo / vh-resizer.js
Created January 17, 2013 09:39
Cool vh fallback - update an elements size based on window height + width.
$(document).ready(
function(){
//resizes div box to perfect window w/h
function sizeMe() {
$('#mySlider').css({height:($(window).height()-150),width:$(window).width()});
};
sizeMe();
});