summaryrefslogtreecommitdiff
path: root/legacy/works/float-negative-margin2.html
blob: 0b0472eea3304ca90b550b1985924491d13de044 (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
32
33
34
35
36
37
38
39
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style>

.column {
	float: left; }

.leftCol {
	width: 200px;
	margin-left: -500px;
	background: red;
	height:100px; }

.mainCol {
	margin: 0 0 0 200px;
	width: 300px;
	background: orange; }

.rightCol {
	width: 100px;
	background: yellow;
	height:50px; }

span {
	display: block;
	position: relative;
	left: 5px; }
</style>
</head>

<body>

<div class="column mainCol"><span>Main</span></div>
<div class="column leftCol"><span>Left</span></div>
<div class="column rightCol"><span><br>Right</span></div>
</body>
</html>