JSFiddle - React, Tailwind, and code Playground
by moloko
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Центрированный блок</title>
</head>
<body>
<div></div>
<span>www.itmathrepetitor.ru</span>
<hr>
</body>
</html>
CSS
body {
background-image: url(https://img-fotki.yandex.ru/get/67890/136164467.17/0_12bc81_21263ac1_orig.png)
}
div {
border: 2px solid black;
width: 200px;
height: 100px;
margin: 50px auto 150px;
}
span {
color: blue;
}
hr {
border: none;
color: darkblue;
background-color: darkblue;
height: 1px;
}