summaryrefslogtreecommitdiff
path: root/works/absolute-relative-position.html
blob: 16ce8e9afda1aaf54ea49e328386741d23ac1697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style>
body {
	margin: 0 0 0 33%;
	border: 1em solid #ffa; }


div {
	padding-right:6.5em;
	position: relative;
	border: 1px solid red; }

div span {
	position: absolute;
	top: 0;
	right: 0;
	text-align: right; }
</style>
</head>

<body>
<div>
	NetSurf 2.1 released
	<span>
		23 May 2009
	</span>
</div>
</body>
</html>