Advertisement
Guest User

Untitled

a guest
Jan 15th, 2013
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. <a href="http://www.dalewoods.com" id="logo_link">
  2. <img src="images/logo.png" alt="Dale Woods" class="logo"/></a>
  3.  
  4. img.logo {
  5. margin-top: 20px;
  6.  
  7. <map name="a">
  8. <area shape="rect" coords="25,25,75,75" href="http://www.dalewoods.com">
  9. </map>
  10. <img src="images/logo.png" alt="Dale Woods" class="logo" usemap="#a" />
  11.  
  12. <div id="logo">
  13. <a href="http://www.dalewoods.com" id="logo_link">Dale Woods</a>
  14. </div>
  15.  
  16. #logo {
  17. width:200px;height:200px;position:relative;
  18. background:url(images/logo.png) no-repeat;overflow:hidden;
  19. }
  20. #logo_link {
  21. display:block;position:absolute;top:0;left:0;
  22. width:200px;height:150px;text-indent:-2000px;
  23. }
  24.  
  25. <img src="example.gif" width="145" height="126" alt="Example" usemap="#Example">
  26.  
  27. <map name="Example">
  28. <area shape="rect" coords="0,0,82,126" alt="Firsthalf" href="#">
  29. </map>
  30.  
  31. <h1><a href="http://www.dalewoods.com">Dale Woods</a></h1>
  32.  
  33. h1 { background: transparent url(images/logo.png) no-repeat 0 0; height: 40px; width: 40px; }
  34. a { display: block; overflow: hidden; text-indent: -99999px; height: 20px; width: 20px; }
  35.  
  36. <div class="logo">
  37. <a href="#"></a>
  38. <img src="image.png" alt="Logo">
  39. </div>
  40.  
  41. .logo {
  42. display: inline-block;
  43. position: relative;
  44. }
  45.  
  46. a {
  47. position: absolute;
  48. left: 0; top: 0;
  49. height: 50%; width: 100%;
  50. }
  51.  
  52. img { display: block; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement