summaryrefslogtreecommitdiff
path: root/css/3column.css
blob: 571d351ab05d3f7b0ef4d94a97002a0c4f5b4cc3 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*
http://www.positioniseverything.net/articles/onetruelayout/example/equalheightopera8fix
3 COLUMN LIQUID LAYOUT
*/

#middleColumn {
	float: left;
	width: 64%;
	margin-left: 20%;
	margin-right: 1%;
}

* html #middleColumn {
	display: inline;
}

#leftColumn {
	float: left;
	width: 19%;
	margin-left: -85%;
	background-color: #329443;
	opacity: 0.5;
	/*background-color: #009999;*/
	/*background-color: #568fc4;*/
}

#rightColumn {
	float: left;
	width: 15%;
	background-color: #cccccc;
}

/* Start Mac IE5 filter \*/
#middleColumn, #leftColumn, #rightColumn {
	padding-bottom: 32767px;
	margin-bottom: -32767px; 
}

@media all and (min-width: 0px) {
	#middleColumn, #leftColumn, #rightColumn {
		padding-bottom: 0;
		margin-bottom: 0; 
	}
	#middleColumn:before, #leftColumn:before, #rightColumn:before {
		display: block;
		background: inherit;
		padding-top: 32767px;
		margin-bottom: -32767px;
		height: 0;
	}
}
/* End Mac IE5 filter */

#columnContainer {
	/* This hides the excess padding in non-IE browsers */
	overflow: hidden;
	margin-bottom: 3px;
}

/* we need this for IE 5.01 - otherwise the columnContainer does not expand to the
necessary height (unless fixed, this problem becomes even more acute 
weirdness as the method is enhanced */
#columnContainer {
	/* Normally a Holly-style hack height: 1% would suffice but that causes 
	IE 5.01 to completely collapse the columnContainer - instead we float it */
	float: left;
	/* NB. possibly only IE 5.01 needs to get this float value - otherwise 5.5 sometimes 
	(I saw it happen many moons ago) makes the width of columnContainer too small 
	the float: none with the comment is ignored by 5.01,
	5.5 and above see it and carry on about their business
	It's probably fine to just remove it, but it's left here 
	just in case that many moons ago problem rears its head again */
	float/**/: none;
}

/* begin easy clearing */
#columnContainer:after {
	display: block; 
	height: 0; 
	clear: both; 
	visibility: hidden;
}

#columnContainer {
	display: inline-block;
}

/*\*/
#columnContainer {
	display: block;
}
/* end easy clearing */

#footer {
	clear: both;
}

/* Safari needs this - otherwise the ghost overflow, though painted 
correctly obscures links and form elements that by rights should be above it.
An unintended side-effect is that it cause such elements to vanish in IE 5.01
and 5.5, hence the child selector hack */
* > #footer, * > form, * > #notes, * > .output {
	position: relative;
	z-index: 1000;
}