html, body { margin: 0; padding: 0; color: white; } a {color: green;} a:link {color: green;} a:visited {color: purple;} a:hover {color: red;} a:active {color: blue;} .container { position: relative; text-align: left; } .top-left { position: absolute; top: 8px; left: 16px; height: 30%; width: 30%; } .top-right { position: absolute; top: 8px; right: 16px; height: 30%; width: 30%; } .centre { position: absolute; top: 50%; left: 50%; height: 30%; width: 30%; transform: translate(-50%, -50%); } .bottom-left { position: absolute; bottom: 8px; left: 16px; height: 30%; width: 30%; } .bottom-right { position: absolute; bottom: 8px; right: 16px; height: 30%; width: 30%; }