blob: 02bb9d7a241c78bc955dbc30bb0376066d9e318a (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style>
.colmid,.colleft
{
float:left;
width:100%; /* width of page */
position:relative;
}
.col1,.col2,.col3
{
float:left;
position:relative;
padding:0 0 1em 0; /* no left and right padding on columns, we just make them narrower instead
only padding top and bottom is included here, make it whatever value you need */
overflow:visible;
}
.colmid
{
right:25%; /* width of the right column */
}
.colleft
{
right:50%; /* width of the middle column */
}
.col1
{
width:46%; /* width of center column content (column width minus padding on either side) */
left:102%; /* 100% plus left padding of center column */
}
.col2
{
width:21%; /* Width of left column content (column width minus padding on either side) */
left:31%; /* width of (right column) plus (center column left and right padding) plus (left column left padding) */
}
.col3
{
width:21%; /* Width of right column content (column width minus padding on either side) */
left:85%; /* Please make note of the brackets here:
(100% - left column width) plus (center column left and right padding) plus (left column left and right padding) plus (right column left padding) */
}
</style>
</head>
<body>
<div class="colmid">
<div class="colleft">
<div class="col1">
col1
</div>
<div class="col2">
col2
</div>
<div class="col3">
col3
</div>
</div>
</div>
</body>
</html>
|