15 October 2015 12:30
CSS - html - Horizontally center a div in a div - Stack Overflow
Centering a div of unknown height and width
Horizontally and vertically. Works with reasonably modern browsers (FF, Safari/Webkit, Chrome, IE10, Opera, etc.) ____
.content {
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
1
(1 marks)