<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#wrap {
position: relative;
width: 300px;
height: 300px;
border: 1px solid #ccc;
}
#wrap div {
position: absolute;
width: 50px;
height: 50px;
background-color: #0094ff;
text-align: center;
line-height: 50px;
}
#wrap div:nth-child(1) { top: 0; left: 0;}
#wrap div:nth-child(2) { top: 0; right: 0;}
#wrap div:nth-child(3) {bottom: 0; left: 0;}
#wrap div:nth-child(4) {bottom: 0; right: 0;}
#wrap div:nth-child(5) {top: 125px; left: 125px;}
</style>
</head>
<body>
<div id="wrap">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</div>
</body>
</html>