Ok, amateur question here but im really bumping my head.
Using the jQuery below, i would like to add margin-top:-100px; to the height value.
Please help! Thanks
Here code:
$(function () { function HomePageSize() { $('#home').css({ width: $(window).width(), height: $(window).height() }); } $(window).resize(function () { HomePageSize(); }); addMargin(); function addMargin() { $('#home').css({'margin-top':'-100px'}); } });