File: ie6.css

package info (click to toggle)
libtemplate-perl 2.24-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,660 kB
  • sloc: perl: 14,518; makefile: 15; sh: 5
file content (59 lines) | stat: -rwxr-xr-x 1,724 bytes parent folder | download | duplicates (6)
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


/*------------------------------------------------------------------------*/
/* How is IE broken?  Let me count the ways...                            */
/*------------------------------------------------------------------------*/

#sidebar {
  left: 220px;
}

ul.menu li a {
    height: 20px;
    margin: 0;
}

div.controls a.menu {
    margin-right: 3px;
}

div.ieblowsgoats {
    display: block;
}

/*------------------------------------------------------------------------*/
/* IE's negative margins are broken.  As soon as you declare a height on  */
/* an element (div.head in this case), it no longer displays any content  */
/* pushed out via negative margins.  And without the height, IE won't     */
/* correctly position any absolutely positioned elements inside it (e.g   */
/* the 'Top' link.  So yet again, we have to jump through some hoops to   */
/* make up for Microsoft's downright shoddy approach to writing software. */
/* In this case, we shift the header left again and remove the negative   */
/* margin.  But that also shifts the right hand side over, so we need to  */
/* shift the 'Top' link rightwards to put it back into place.  The only   */
/* downside is that the lines under the titles are also shifted left,     */
/* but we can live with that.  Or rather, IE6 users will have to live     */
/* with it.  Or download Firefox.
/*------------------------------------------------------------------------*/

div.section div.head,
div.subsection div.head {
    height: 20px;
    left: -28px;
    padding-left: 28px;
}

div.subsection div.head {
    left: -20px;
    padding-left: 20px;
}

div.section div.head a.top {
    right: -28px;
}

div.subsection div.head a.top {
    right: -20px;
}