What you want to do shouldn't be too difficult using CSS3. However a small caveat before getting started is that this will only work in the more recent versions of mozilla/webkit browsers since it uses the vendor specific css3 selectors. If you need it to work in more browsers, you'll want to use a javascript library like jQuery to achieve the affect.
So here's the HTML. I'm using a div but you can replace that with an image just make sure you change the selector in the css as well
<div class="imageContainer">
<div class="imageExample"> </div>
</div>
- <div class="imageContainer">
- <div class="imageExample"> </div>
- </div>
And the CSS
.imageContainer {position:relative; border: 1px solid #333333;}
.imageExample {height: 50px; width: 50px; position: relative; margin: 20px; background: blue; }
.imageExample:hover {z-index:10; -moz-transform: scale(1.75); -webkit-transform: scale(1.75); transform: scale(1.75);}
- .imageContainer {position:relative; border: 1px solid #333333;}
- .imageExample {height: 50px; width: 50px; position: relative; margin: 20px; background: blue; }
- .imageExample:hover {z-index:10; -moz-transform: scale(1.75); -webkit-transform: scale(1.75); transform: scale(1.75);}
The important parts here are the position attributes on both the object and the parent and then the z-index on hover. The transform's achieve the scale using 1.0 = 100%, 1.5 = 150%, etc. You could also animate the scale in webkit browsers with the -webkit-transition property but thats another post entirely.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com