@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Document</title>
+ <style>
+ *{
+ margin: 0;
+ padding: 0;
+ }
+ #div1{
+ width: 200px;
+ height: 200px;
+ background: red;
+ float: left;
+ #div2{
+ background: green;
+ margin-left: 210px;
+ </style>
+</head>
+<body>
+ <div id="div1"></div>
+ <div id="div2"></div>
+</body>
+</html>
@@ -0,0 +1,32 @@
+ body{
+ display: flex;
+ flex: 1;
+ position: absolute;
+ margin-top: -200px;
@@ -0,0 +1,31 @@
+ background: #ccc;
+ left: 50%;
+ top: 50%;
+ margin-left: -100px;
+ margin-top: -100px;
+ html,body{
+ height: 100%;
+ justify-content: center;
+ align-items: center;