New and improved! Washes whiter then white and...
Also perfect in Opera!
Like this:
Code:
background: center center no-repeat silver; /* To make the thumbs center */
background-position: center; /* To make the thumbs also center in Opera */
For reference here's the complete code, also including the 'voice-family' hack:
Code:
<title>Thumbs page</title>
<style type="text/css">
div.thumb {
float: left;
display: block;
padding:5px;
margin: 1px;
border: 0;
background: center center no-repeat silver; /* To make the thumbs center */
background-position: center; /* To make the thumbs also center in Opera */
width :110px; /* Start of 'voice-family' hack for ie5win */
height: 110px;
voice-family: "\"}\"";
voice-family: inherit;
width: 100px;
height: 100px;
}
html>body div.thumb {
width: 100px;
height: 100px;
} /* End of 'voice-family' hack for ie5win */
div.thumb img {
border:0;
}
</style>
</head>
<body>
<div class="thumb" style="background-image: url(p/t_00-02-06.jpg)">
<a href="p/00-02-06.jpg"><img src="g/e100x100.gif" width="100" height="100" alt="Bigger" /></a>
</div>
<div class="thumb" style="background-image: url(p/t_00-02-07.jpg)">
<a href="p/00-02-07.jpg"><img src="g/e100x100.gif" width="100" height="100" alt="Bigger" /></a>
</div>
<!-- More of the same... -->
</body>
</html>
I tested this in ie5.0, moz1.0 and Opera6.05, all under Windows. Just curious about other browsers/platforms... Volunteers? 
Just one more thing, not a big issue but since I noticed it I thought I'd mention it. In order to have it really 'pixel-perfect' in ie5.0 one needs to put every 'div' on one single line without linebreaks. Otherwise ie5 will add a few pixels to the height of each 'box'. Just make sure that every 'div' has an equal amount of linebreaks in it so all boxes will be the same size.
Thanks again dense13 and I hope the above might also be of some use to you...
Greetings
Rik
PS: Did I mention I feel kinda 'smart' now?
Bookmarks