Skip to content

Commit 091d7a8

Browse files
author
Dirk Ginader
committed
added support for detecting Firefox 3.5 plus a bit of cleanup
1 parent b93b8b6 commit 091d7a8

File tree

2 files changed

+37
-20
lines changed

2 files changed

+37
-20
lines changed

index.html

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,43 @@
33

44
<html lang="en">
55
<head>
6-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7-
<title>CSS Hacks Collection</title>
8-
6+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7+
<title>CSS Hacks Collection</title>
8+
<!--
9+
* code: http://github.com/ginader/Accessible-Tabs
10+
* please report issues at: http://github.com/ginader/Accessible-Tabs/issues
11+
*
12+
* Copyright (c) 2007 Dirk Ginader (ginader.de)
13+
* Dual licensed under the MIT and GPL licenses:
14+
* http://www.opensource.org/licenses/mit-license.php
15+
* http://www.gnu.org/licenses/gpl.html
16+
*
17+
* Version: 1.7
18+
*
19+
* History:
20+
* * 1.0 initial release
21+
-->
22+
923
<style type="text/css">
1024
body p { display: none; }
1125

12-
#more{
13-
display:block;
14-
padding-top:2em;
15-
}
16-
17-
1826
/*FireFox 2 and 3 */
1927
#firefox2, x:-moz-any-link {
2028
display: block;
2129
*display: none; /* overwrite for ie6 and ie7*/
2230
}
23-
31+
2432
/*FireFox 3*/
2533
#firefox3, x:-moz-any-link, x:default {
2634
display: block;
2735
*display: none; /* overwrite for ie6 and ie7*/
2836
}
29-
37+
38+
/* Firefox 3.5+ */
39+
BODY:nth-of-type(1) #firefox3_5, x:-moz-any-link, x:default {
40+
display: block;
41+
}
42+
3043
/* IE 7 */
3144
html > body #ie7 {
3245
*display: block;
@@ -53,9 +66,9 @@
5366
*display: none; /* overwrite for ie6 and ie7*/
5467
}
5568

56-
/* Safari */
69+
/* Webkit (Safari and Chrome) */
5770
@media screen and (-webkit-min-device-pixel-ratio:0) {
58-
#safari {
71+
#webkit {
5972
display: block;
6073
}
6174
}
@@ -70,14 +83,18 @@
7083

7184
</head>
7285
<body>
73-
<p id="opera">Opera 7.2 - 9.62 (so far)</p>
74-
<p id="safari">Safari</p>
86+
<p id="opera">Opera 7.2+</p>
87+
<p id="webkit">Webkit (Safari and Chrome)</p>
7588
<p id="firefox2">Firefox 2 and 3</p>
76-
<p id="firefox3">Firefox 3</p>
89+
<p id="firefox3">Firefox 3+</p>
90+
<p id="firefox3_5">Firefox 3.5+</p>
7791
<p id="ie7">IE 7</p>
7892
<p id="ie6">IE 6</p>
7993
<p id="ie6andie7">IE 6 and IE7</p>
8094
<p id="ie6andie7andie8">IE6, IE 7 and IE8</p>
81-
<p id="ie8">IE8</p>
95+
<p id="ie8">IE8</p>
96+
<pre>
97+
check the code to see how the CSS Hacks work
98+
</pre>
8299
</body>
83-
</html>
100+
</html>

readme.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Then I use the Browser specific Hacks to make the Browser names visible again.
99

1010
See also
1111
--------
12-
* [Read more about the CSS Hacks used in this Demo here](http://blog.ginader.de/archives/2009/02/01/CSS-Voodoo-The-dark-art-of-CSS-Hacks.php)
13-
* [jQuery Accessible Tabs - Wie man Tabs WIRKLICH zugänglich macht](http://blog.ginader.de/archives/2009/02/07/jQuery-Accessible-Tabs-Wie-man-Tabs-WIRKLICH-zugaenglich-macht.php)
12+
* [Read more about the CSS Hacks used in this Demo here (english)](http://blog.ginader.de/archives/2009/02/01/CSS-Voodoo-The-dark-art-of-CSS-Hacks.php)
13+
* [Mehr Infos über die hier verwendeten Hacks (deutsch)](http://blog.ginader.de/archives/2009/02/01/CSS-Voodoo-Die-dunkle-Kunst-der-CSS-Hacks.php)

0 commit comments

Comments
 (0)