I want to give my bg pic, both a height and a weight with! But it will only let me set one value! Does anybody know what to do?
$(document).ready(function() {
function setHeight() {
windowHeight = $(window).innerHeight();
$('body').css('background-size', windowHeight, '100%');
};
setHeight();
$(window).resize(function() {
setHeight();
});
});
document.body.style.cssText = 'width:100%; height:100%';document.querySelector(...)maybe?) and thenelem.style.cssText = 'styles here...';