I run into a problem with javascript that resize elements according screen size. I would like to translate this code with same functionality to css simple class.
$(window).resize(function(){ // On resize
$('item2').css({'height':(($(window).height()))+'px'});
});
I have tried
.test2 {
height: 100%;
}
But doesn`t work - if I delete script part elements are not the desired with (full screen height).
Problem with script is that it implement the style to markup, which can`t be changed with media queries unless using !important...
item2is an tag name ?