Home › Forums › CSS › Rotate div on page load › Re: Rotate div on page load
June 26, 2013 at 7:48 pm
#140645
Participant
you have a javascript error on your page
trying to set the height of section with a mix of vanilla js and jquery.
either
$(‘section’)[0].style.height = ‘100% – ‘ + $(‘header’).style.height + ‘px’; // added a [0] after the jquery selector
or
$(‘section’).css(‘height’, ‘100% – ‘ + $(‘header’).style.height + ‘px’);
note you dont have a section to your document