Revisions

  • 57d2c8 Fri Mar 06 03:10:45 -0800 2009
gist: 74865 Download_button fork
public
Public Clone URL: git://gist.github.com/74865.git
Embed All Files: show embed
tooltip.html #
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
<!doctype html>
<html lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Tooltip without images</title>
    <style type="text/css" media="screen">
body {
  color: #333;
  font: 62.5% "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
}
/* Tooltip box */
.tooltip {
  border: 3px solid #ddd;
  float: left;
  padding: 5px;
  position: relative;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
/* Tooltip arrow */
.tooltip div {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #ddd;
  height: 0px;
  width: 0px;
  
  position: absolute;
  bottom: -8px;
  left: 5%;
}
/*
1. IE6 does not support transparent borders.
2. Not sure why it needs more negative bottom position then the others.
*/
* html .tooltip div {
  border-left-color: #fff;
  border-right-color: #fff;
  bottom: -11px;
  font-size: 0;
}
    </style>
  </head>
  <body>
    <div class="tooltip">
      Tooltip without images
      <div></div>
    </div>
  </body>
</html>