span.quicktip {
  display: inline-block;
  position: relative;
  padding-right: 20px;
  background-image: url(images/info.png);
  background-repeat: no-repeat;
  background-position: right; 

}

span.quicktip-error {
  background-image: url(images/error.png);
}

span.quicktip-help {
  background-image: url(images/help.png);
}

span.quicktip-info {
  background-image: url(images/info.png);
}

span.quicktip-warn {
  background-image: url(images/warn.png);
}

span.quicktip-ok {
  background-image: url(images/ok.png);
}

span[data-quicktip]:before {
  position: absolute;
  left: 0;
  top: -40px;
  background-color: #CCCCFF;
  color: #ffffff;
  height: 30px;
  line-height: 30px;
  border-radius: 5px;
  padding: 0 15px;
  content: attr(data-quicktip);
  white-space: nowrap;
  display: none;
}

span[data-quicktip].quicktip-fixed:before {
  position: fixed;
  left: auto;
  right: 10px;
  top: 10px;
  height: auto;
  white-space: normal;
  line-height: normal;
  min-height: 30px;
  max-width: 300px;
  border-radius: 5px;
  padding: 5px 5px;
}

span[data-quicktip].quicktip-box:before {
  height: auto;
  white-space: normal;
  line-height: normal;
  min-height: 30px;
  width: 300px;
  border-radius: 5px;
  padding: 5px 5px;
}

span[data-quicktip].quicktip-error:before {
  border: 1px solid orange;
  background-color: red;
  color: #ffffff;
}

span[data-quicktip].quicktip-warn:before {
  border: 1px solid orange;
  background-color: yellow;
  color: black;
}

span[data-quicktip].quicktip-info:before {
  border: 1px solid blue;
  background-color: lightblue;
  color: darkblue;
}

span[data-quicktip].quicktip-help:before {
  border: 1px solid blue;
  background-color: lightblue;
  color: darkblue;
}

span[data-quicktip].quicktip-ok:before {
  background: 1px solid green;
  background-color: lightgreen;
  color: green;
}

span[data-quicktip]:hover:before {
  display: block;
  z-index:999;
}
