1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta http-equiv="X-UA-Compatible" content="ie=edge">
7 <title>CSS-position-static</title>
8 <link rel="stylesheet" href="https://cdn.bootcss.com/normalize/8.0.0/normalize.css">
9 <style>
10 .container{
11 background-color: #868686;
12 width: 100%;
13 height: 300px;
14 margin-top: 50px;
15 }
16 .content{
17 background-color: red;
18 width: 100px;
19 height: 100px;
20 position: absolute;
21 top: 10px;
22 }
23 </style>
24 </head>
25 <body>
26 <div class="container">
27 <div class="content">
28 </div>
29 </div>
30 </body>
31 </html>