Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-26-2013, 04:38 PM   PM User | #1
utnalove
Regular Coder

 
Join Date: Oct 2008
Location: Poland
Posts: 358
Thanks: 141
Thanked 2 Times in 2 Posts
utnalove is an unknown quantity at this point
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..
utnalove is offline   Reply With Quote
Old 02-26-2013, 04:47 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
utnalove (02-26-2013)
Old 02-26-2013, 04:59 PM   PM User | #3
utnalove
Regular Coder

 
Join Date: Oct 2008
Location: Poland
Posts: 358
Thanks: 141
Thanked 2 Times in 2 Posts
utnalove is an unknown quantity at this point
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?
utnalove is offline   Reply With Quote
Old 02-26-2013, 05:07 PM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
utnalove (02-26-2013)
Old 02-26-2013, 05:25 PM   PM User | #5
utnalove
Regular Coder

 
Join Date: Oct 2008
Location: Poland
Posts: 358
Thanks: 141
Thanked 2 Times in 2 Posts
utnalove is an unknown quantity at this point
WOW, thank you so much! It works
utnalove is offline   Reply With Quote
Old 02-26-2013, 07:58 PM   PM User | #6
nokiax2
New to the CF scene

 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
nokiax2 is an unknown quantity at this point
Html code Download link button pls
nokiax2 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:57 PM.


Advertisement
Log in to turn off these ads.