balloontip with a picture : Tooltips « CSS Controls « HTML / CSS






balloontip with a picture

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
blockquote {
 width: 250px;
}
blockquote p {
 background: url(./css-book/balloontip.gif);
 background-repeat: no-repeat;
 background-position: bottom;
 padding-bottom: 28px;
}
blockquote p span {
 display: block;
 padding:  0.25em 0.25em 0.5em 0.5em;
 border: 1pt solid black;
 border-bottom-width: 0;        
 font-size: 3em;
 font-family: "Comic Sans MS", Verdana, Helvetica, sans-serif;
 line-height: 0.9em;
}
cite {
 text-align: right;
 display: block;
 width: 250px;
}
</style>
</head>
<body>

  <blockquote>
   <p>
    <span>
     Hi
    </span>
   </p>
   <cite>
    Author
   </cite>
  </blockquote>

</body>
</html>

   
    
  








Related examples in the same category

1.CSS Tooltips
2.Tooltip for links