Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: div with image

  1. #1
    New Coder
    Join Date
    Oct 2011
    Posts
    44
    Thanks
    5
    Thanked 0 Times in 0 Posts

    div with image

    i am trying to make an image act as a button when i click it so that a tooltip is shown:


    css:
    Code:
    #pref_button {
    float:right;
    margin-right:5px;
    margin-top:0px;
    opacity:0.2;
    position:relative;
    }
    
    #pref_button:hover {
    opacity:1.0;
    }
    HTML:

    Code:
    <img id="pref_button" src="http://cdn1.iconfinder.com/data/icons/iconsweets2/40/preferences_gear_5.png" />

    However i dont see any 100% opacity when i hover the image

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,680
    Thanks
    6
    Thanked 1,009 Times in 982 Posts
    Which browser are you using?

  • #3
    New Coder
    Join Date
    Oct 2011
    Posts
    44
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    Which browser are you using?
    tested in all
    Last edited by ubuntu; 12-16-2011 at 09:24 AM.

  • #4
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Can you link us your site? Hard to recreate your issue since it deals with images and you didn't provide all your code.
    Teed

  • #5
    New Coder
    Join Date
    Oct 2011
    Posts
    44
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by teedoff View Post
    Can you link us your site? Hard to recreate your issue since it deals with images and you didn't provide all your code.
    Its okay i found the problem. thanks for your help (:
    Last edited by ubuntu; 12-16-2011 at 03:06 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •