csatterwhite
Programmer
- Aug 4, 2010
- 4
Can someone please explain to me how to do what I have illustrated below?
Say I have 10 images that I would like to treat as a menu, tiny images, on rollover, the image gets larger, has padding and a border, thus expanding. Problem is, the rollover moves the element to the right of the rollover, I would like for the elements to stay positioned, and the image expand from the center, instead of top left, and z-index over other images.
Tried this, didnt work.
Is it possible with css only?
=======================
Carl Satterwhite
Visual Designer
Say I have 10 images that I would like to treat as a menu, tiny images, on rollover, the image gets larger, has padding and a border, thus expanding. Problem is, the rollover moves the element to the right of the rollover, I would like for the elements to stay positioned, and the image expand from the center, instead of top left, and z-index over other images.
Tried this, didnt work.
Code:
.mini-slide-holder img { width:28px; height:36px; background:#fdfdfd; cursor: pointer; position: relative; z-index: 1; }
.mini-slide-holder img.first { }
.mini-slide-holder img:hover { width:37px; height:48px; padding:2px; border:1px solid #d5d5d5; position: relative; z-index: 2; }
Is it possible with css only?
=======================
Carl Satterwhite
Visual Designer