Review the code snippet below:
<div id="hplogo-..." style="background-color: rgb(153, 77, 51); position: absolute; width: 201px; height: 121px; left: -28px; top: 31px; z-index: 17;">
<div style="overflow: hidden; top: 6px; left: 6px; position: absolute; height: 109px; width: 189px; ">
<a href="/search?q=...">
<img src="/logos/..." border="0" style="position: absolute; left: -1px; top: -110px; ">
</a>
</div>
</div>
The initial <div>
sets the image positioning and background color. The second <div>
prevents overflow issues by adding a 6-pixel distance from the first div, creating a border effect. Inside this div, an anchor tag encloses the image that is positioned with an offset due to its sprite nature.
On hover, the first div changes dimensions and repositions both divs accordingly.