CENTER ALIGN ABSOLUTE DIV ELEMENT
Run
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
<style>
    h2 {
	  text-align: center;
	}
	.container {
	  position: absolute;
      left: 0;
	  right: 0;
	  margin: auto;
	  width: 50%;
	  z-index: 99%;
	  background: #cccccc;
	  text-align: center;
	}
	
</style>
</head>
<body>
    <h2>Align absolute positioned div  </h2>
    <div class="container">
	   <h3>Centered aligned div</h3>
    </div>
</body>
</html>