programming-examples/css/Absolute position top right bottom.html

39 lines
983 B
HTML
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<!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>Absolute position top right bottom</title>
<style rel='stylesheet' type='text/css'>
body {
background: green;
margin: 5;
padding: 5;
}
p {
background: orange;
border: 1px solid blue;
padding: 5px;
margin: 5px;
}
p#absolute {
position: absolute;
top: 13;
right: 13;
bottom: 13;
}
</style>
</head>
<body>
<p>
True love is just like rain; it touches us all.<br>
Anonymous
</p>
<p id='absolute'>
Love grows by giving.<br>
The love we give away is the only love we keep.<br>
The only way to retain love is to give it away.<br><br>
Elbert Hubbard
</p>
</body>
</html>