|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |
|
CSS Consultant/Ninja-I'm fast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2008
Location: Whiteford, MD
Posts: 10,067
|
Quote:
He makes the image big by default, but sets it to 100% of the anchors width/height, and on hover he sets the width/height back to auto Code:
.PZ3zoom a:hover { position:absolute;
z-index:999; padding:0; background:none;
cursor:default; height:auto; width:auto;
overflow:visible; border:1px solid #369;
margin:-1px 0 0 -1px; }
html>body .PZ3zoom a:hover { margin:-1px -1px 0 -1px; }
.PZ3zoom a img { border:0; height:100%; width:100%; }
.PZ3zoom a:hover img { height:auto; width:auto;
border:0; }
|
|
|
|
|
|
|
#2 |
|
SitePoint Zealot
![]() ![]() Join Date: Jan 2008
Location: Hot Springs, Montana
Posts: 195
|
Thanks for articulating this tactic. Clever, from my perspective. Do you see any major drawbacks to this approach?
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 14:30.











Hybrid Mode
