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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    382
    Thanks
    150
    Thanked 2 Times in 2 Posts

    How to make image opaque if not hover. And xbrowser working

    Hello, I'd like the social icons here in the header (so far only FB icon) to be opaque when the mouse is not on the image.

    If the mouse goes on the icon, it should show in original.

    I'd like it to work with Chrome, FF and IE8 and IE9.

    THE HTML right now is:
    Code:
    <div class="spanfbbt contact nomargin">
    <a href="https://www.facebook.com/pages/BGLAM/242250987285" target="_blank"> 
    <img src="http://bglam.pl/themes/wellcommerce_fashion_copy/assets/img/facebook.png" alt="Facebook bglam">
    </a></div>
    The CSS:
    Code:
    .contact.spanfbbt {
        width: 64px; 
        margin-top: 6px !important;
        position:relative !important;}

    I hope somebody can help
    Thank you
    Last edited by utnalove; 02-26-2013 at 04:49 PM.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello utnalove,
    Something like this maybe?
    Code:
    .pull-right a {
    		filter:alpha(opacity=70);
    		-moz-opacity:.7;
    		opacity:.7;
    }
    .pull-right a:hover {	
    		filter:alpha(opacity=100);
    		-moz-opacity: 1;
    		opacity: 1;
    	}
    I think that works as far back as IE8...
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    utnalove (02-26-2013)

  • #3
    Regular Coder
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    382
    Thanks
    150
    Thanked 2 Times in 2 Posts
    Almost

    Now when I go on hover, the image changes immediately to the new state.
    Is it possible to have somehow without JS stuff a slower transition?

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Have a look at the new CSS3 transitions here.

    An IE solution that I've not seen before - http://louisremi.github.com/jquery.t...est/index.html
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    utnalove (02-26-2013)

  • #5
    Regular Coder
    Join Date
    Oct 2008
    Location
    Poland
    Posts
    382
    Thanks
    150
    Thanked 2 Times in 2 Posts
    WOW, thank you so much! It works

  • #6
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Html code Download link button pls


  •  

    Posting Permissions

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