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
If you already have margin-top of -100px assigned to some element like #home, then You can try this
$(function () {
function HomePageSize() {
$('#home').css({
width: $(window).width(),
height: $(window).height() + parseInt($("#home").css("margin-top"))
});
}
$(window).resize(function () {
HomePageSize();
});
HomePageSize();
});