55 lines
1.4 KiB
HTML
55 lines
1.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns='http://www.w3.org/1999/xhtml' xml:subLang='en'>
|
|
<head>
|
|
<title>Div Tag Top And Left</title>
|
|
<style rel='stylesheet' type='text/css'>
|
|
body {
|
|
background: pink;
|
|
}
|
|
div {
|
|
position: absolute;
|
|
width: 250px;
|
|
height: 250px;
|
|
border: 1px solid rgb(102, 169, 196);
|
|
z-index: auto;
|
|
}
|
|
div#one {
|
|
background: green;
|
|
top: 12px;
|
|
left: 12px;
|
|
}
|
|
div#two {
|
|
background: blue;
|
|
top: 25px;
|
|
left: 25px;
|
|
}
|
|
div#three {
|
|
background: green;
|
|
top: 40px;
|
|
left: 40px;
|
|
}
|
|
div#four {
|
|
background: aqua;
|
|
top: 80px;
|
|
left: 80px;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id='one'>The thing about falling in love,<br>
|
|
is that if you do it right,<br>
|
|
you never have to hit the ground.<br><br>
|
|
|
|
Kendall Lepitzki</div>
|
|
<div id='two'>Love Sayings</div>
|
|
<div id='three'>You love simply because you cannot help it. Kim Anderson</div>
|
|
<div id='four'>Don't walk in front of me, I may not follow.<br>
|
|
Don't walk behind me, I may not lead.<br>
|
|
Just walk beside me and be my friend forever.<br><br>
|
|
|
|
George Fox
|
|
</div>
|
|
</body>
|
|
</html>
|