Here is my code, I just can't get the login div to sit vertically aligned.
Code:
main {
display:flex;
}
.loginForm {
margin: auto;
}
footer {
position: absolute;
bottom: 0;
left: 0;
}
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<link href="includes/css/basic.css" rel="stylesheet" type="text/css">
<link href="includes/css/layout.css" rel="stylesheet" type="text/css">
</head>
<body>
<main>
<div class="loginForm">
Login
</div>
</main>
<footer>
Footer
</footer>
</body>
</html>
But it just doesn't work. Can anyone give me any advice?