Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    5
    Member #
    26475
    Ive been trying to have this code enlarge an image when I roll over it but I cant get it to not push down the image below it when the picture above it is rolled over and enlarged, also I wanted to have the pictured that gets enlarged to go over any other content around it without disturbing it.

    Tried a number of ways for about 3 hours now but just cant get it right.





    Code:
    
    
    <html>
    <head>
    <style type="text/css">
    
    div.img 
    {
    
    height: auto;
    width: auto;
    position: absolute;
    
    
    }	
    
    div.img a:hover img {
    
    
    width: 420px;
    height: 350px;
    position: relative;
    
    
    </style>
    </head>
    <body>
    
    
    <div class="img">
    <a target="_blank" href="klematis2_big.htm">
    <img src="http://www.saltwatersystems.com/STANTON/img/awdaw020.jpg" alt="Klematis" width="110" height="90" 
    </div>
    
    
    <div class="img">
    <a target="_blank" href="klematis2_big.htm">
    <img src="http://www.saltwatersystems.com/STANTON/img/awdaw002.jpg" alt="Klematis" width="110" height="90" 
    
    </div>
    
    
    </div>
    
    </body>
    </html>
    thanks

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    1) You haven't closed your img or your a tags.

    2) You have a </div> tag without a corresponding <div> tag.

    Not sure if either of those is your problem, but I'd start there.

    If that doesn't work, I'd suggest modifying the code from a two-tiered DHTML menu to get what you want.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:23 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com