Beispiel:CSS-Sprites.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css">
  <style>
a {
  display: inline-block;
  background: url(/images/d/d8/Iconset.png);
  overflow: hidden;
  height: 32px;
  width: 32px;
  margin: 0;
  padding: 0;
  font: 0/0 a; 
  text-shadow: none; 
  color: transparent;
  border: thin solid transparent;
}

a:hover, a:focus {
  border: 1px solid #09c;	
  box-shadow: 0 0 10px rgba(0,191,255,0.9);
}
.chr{
  background-position: 0 -155px;
}
.fx {
  background-position: 0 -62px;
}
.edge {
  background-position: -403px -31px;
}
.op {
  background-position: 0 0;
}
.saf {
  background-position: 0 -93px;
}	
  </style>
  <title>Beispiel: CSS Sprites</title>
</head>
 
<body>
  <h1>CSS Sprites</h1>
 
    <p>Holen Sie sich einen modernen Browser:</p>
    <p>    
      <a class="chr" href="https://www.google.de/chrome/browser/desktop/">Chrome</a>
      <a class="fx" href="https://www.mozilla.org/de/firefox/new/">Firefox</a>
      <a class="edge" href="https://windows.microsoft.com/de-de/windows/preview-microsoft-edge-pc">Edge</a>
      <a class="op" href="https://www.opera.com/de">Opera</a>
      <a class="saf" href="https://www.apple.com/de/safari/">Safari</a>
    </p>
  
</body>
</html>