CSS - właściwości top right bottom left


top right bottom left

kod wynik kodu
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<title>CSS - visual formatting</title>
<link rel="Stylesheet" type="text/css" href="style.css" />
<style type="text/css">
.top {
  top: 200px;
  position: absolute;
  background: yellow;
}
.right {
  right: 200px;
  position: absolute;
  background: orange;
}
.bottom {
  bottom: 200px;
  position: absolute;
  background: pink;
}
.left {
  left: 200px;
  position: absolute;
  background: violet;
}
</style>
</head>
<body>

<h2 class="top">top: 200px</h2>
<h2 class="right">right: 200px</h2>
<h2 class="bottom">bottom: 200px</h2>
<h2 class="left">left: 200px</h2>

</body>
</html>