If I try to set the height of an element I can't get it working. I have tried doing it with css and jquery but both without result.
This is the css I tried:
#slider{
width:100%;
height:100%;
background-image: url(/img/background.jpg);
background-size: 100%;
}
and this the Jquery code
var screen_height = $(document).height();
$('#slider').css('Height', screen_height );
does somebody know how to fix this. This is not the first time I have this problem and normally I can fix it with Jquery but now even that doesn't work.