Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Rotate div on page load Re: Rotate div on page load

#140645
pixelgrid
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