/ Published in: CSS
Had to track it down through web archives.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
h1 { width: 247px; height: 27px; line-height: 1em; white-space: nowrap; font-size: 100%; overflow: hidden; } h1:after { display: block; content: url("logo.png"); width: 247px; height: 27px; margin-top: -1em; } /*IE hacking */ * html h1 { background-image: expression(this.runtimeStyle.backgroundImage = "none", this.innerHTML += '<span></span>'); position: relative; z-index: 1; } /*Now the simple and effective IE styling.*/ * html h1 span { display: block; width: 247px; height: 27px; background: url(logo.png) no-repeat; position: absolute; top: 0; left: 0; z-index: 2; }