On 02-Apr-08, at 8:20 PM, Marcelo de Moraes Serpa wrote:

> I want something like the effect in this page: http://www.globo.com/  
> (hover
> on any of the thumbs there and see)

It's a little hard to understand their CSS file, as it's in a  
different language, but I believe that what they do is adjust the size  
of their images on a:hover, like so:

.larg-186 {width:186px;}
.crop-116 a.crop-foto {height:116px;}
.crop-116 a.crop-foto:hover {height:110px;}

This is the relevant HTML (simplified):

<div class="foto-legenda larg-186 crop-116">
        <a class="crop-foto"><img width="186" height="116" src="/foo.jpg"/ 
 ></a>
</div>

So, to sum up, what they're doing, is reducing the size of their  
photographs by an amount equal to the new width/height of the photo 
+border (looks like a 3px symmetrical border). Thus, they don't  
'jump', like yours do.

Do tell me if I'm being unclear.

Best,
  - Rahul.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to