"Stick footer at bottom when height is lower than display height"-ны өөр хувилбарууд

Дусал нэвтэрхий толь-с
(Шинэ хуудас: <pre> $('html').css({'height': '100%', 'box-sizing': 'border-box'}); var bodyPadBtm = 'calc(' + $('#footer').outerHeight() + 'px + ' + $('#footer').css('marginTop') + ')'; …)
 
(Өөрчлөлт алга)

09:26, 5 Аравдугаар сар 2017-ий байдлаарх одоогийн засвар

	$('html').css({'height': '100%', 'box-sizing': 'border-box'});
	var bodyPadBtm = 'calc(' + $('#footer').outerHeight() + 'px + ' + $('#footer').css('marginTop') + ')';
	$('body').css({ 'min-height': '100%', 'position': 'relative', 'margin': '0', 'padding': 0, 'padding-bottom': bodyPadBtm });
	$('#footer').css({'bottom': '0', 'position': 'absolute', 'right': '0', 'left': '0'});