How to make div stick to the bottom of page

Pin a footer to the bottom of the viewport in desktop browsers with this custom CSS for your WordPress site.

.site-footer {
	background-color: #1c1c1c;
	line-height: 35px;
	padding: 15px 0;
	bottom: 0;
	position: fixed;
	width: 100%;
	display: block;
	z-index: 99999;
}
.site-footer,
.site-footer a {
	color: #666;
}