<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.relative{
border:1px solid black;
background-color:yellow;
height:100px;
position:relative;
}
</style>
</head>
<body>
<h1>Tiêu đề thứ nhất</h1>
<h1 class="relative">Tiêu đề thứ hai</h1>
<h1>Tiêu đề thứ ba</h1>
</body>
</html>
Vị trí mặc định | |||
top: 10px; | bottom: 10px; | left: 10px; | right: 10px; |
top: 20px; | bottom: 20px; | left: 20px; | right: 20px; |
top: 30px; | bottom: 30px; | left: 30px; | right: 30px; |
top: 40px; | bottom: 40px; | left: 40px; | right: 40px; |