/ Published in: CSS
Standardgrafik und Austauschgrafik befinden sich in einer Datei. Es wird aber nur 50% angezeigt. Beim Hover wird lediglich mit background-position verschoben.
Vorteil: Keine Ladeverzögerung für die Hovergrafik.
Vorteil: Keine Ladeverzögerung für die Hovergrafik.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.foto-link { width: 290px; height: 190px; display: block; margin: 0 auto; } .foto1 { background: url(tor.jpg) no-repeat; } .foto-link:hover { background-position: 0 -190px; } /* HMTL Snippet <a href="#" class="foto-link foto1"></a> */
URL: http://www.ohne-css.gehts-gar.net/0026.php