<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Relative Positioning</title>
<style rel="stylesheet" type="text/css">
p {
padding: 5px;
width: 200px;
background-color: red;
}
p.two {
position: relative;
left: 40px;
top: -40px;
background: pink;
}
</style>
</head>
<body>
<p><b>one</b>. top of the page.</p>
<p class="two"><b>two</b>. middle of the page.</p>
<p><b>three</b>. bottom of the page.</p>
</body>
</html>
|