-
Notifications
You must be signed in to change notification settings - Fork 0
/
adapted-jello.css
80 lines (67 loc) · 1.9 KB
/
adapted-jello.css
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
/* What follows is an adapted version of the Jello Layout,
as described here
http://www.positioniseverything.net/articles/jello.html
This is mostly not my code.
*/
/* Jello */
body {
padding: 0 12em 0 12em; /* these side paddings together determine the natural min-width */
margin: 0;
text-align: center; /* this centers the wrappers in older IEwin versions */
background: #ccccff;
color: black;
}
#sizer {
margin: 0 auto 0 auto; /* this centers the wrappers in standards browsers */
width: 75%; /* here is the critical value for customizing the Jello behavior */
max-width: 28em; /* version for IE is at the bottom of this style block */
}
#expander {
background: white;
margin: 0 -12em 0 -12em; /* these side margins should be the same
or slightly less than body paddings */
min-width: 24em; /* This prevents Safari from losing the negative
margins in narrow windows */
position: relative;
}
/* Holly hack for IE. Must be zero, not the usual 1% value, due to IE bug
* \*/
* html #expander { height: 0; }
/* */
/* helps IE get the child percentages right. */
#wrapper { width: 100%; }
/* * * * * * * * * * * * * * * * * */
#lsidebar {
width: 5%;
float: left;
display: inline; /* IEwin doubled margin bug fix */
text-align: left;
margin-left: 0;
}
#content {
width: 80%;
margin-right: 5%;
text-align: left;
float: right;
display: inline; /* IEwin doubled margin bug fix */
}
#rsidebar {
width: 5%;
float: right;
display: inline; /* IEwin doubled margin bug fix */
text-align: left;
margin-left: 0;
}
/* http://positioniseverything.net/easyclearing */
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {display: inline-table;}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */