Horizontally and vertically. Works with reasonably suported modern browsers (FF, Safari/Webkit, Chrome, IE10, Opera, etc.)
<!doctype html>
<head>
<title>How to Centering a div of unknown height and width</title>
<style>
.content {
position: absolute;
left: 50%;
top: 50%;
font-weight:800;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
...
Banner Link
Showing posts with label How to Centering a div of unknown height and width. Show all posts
Showing posts with label How to Centering a div of unknown height and width. Show all posts