Jump to content

Strange little line appearing on cursor hover over image links with opacity change


jasonxweb
 Share

Recommended Posts

Hi everyone,

 

I am making a section of my webpage so that the image links will go from translucent to opaque during a cursor mouseover. However, there is an unintended effect - a little horizontal line (about 1 pixel by 5 pixels) appears at the lower right corner of the image link during the hover. Does anyone know how to make it so the little line does not appear?

 

You can see the effect on http://www.jasonwangart.com - please see the top part of the sidebar, where the social media icon links are.

 

I observed this effect on:

  • Chrome 35.0.1916.114
  • Safari 7.0.4 (9537.76.4)
  • Firefox 29.0.1

, all using Mac OS X 10.9.3

 

I have included an excerpt of the code I used below. I put this block of code inside a "HTML Gadget" in Blogger to create this part of the webpage.

 

Thank you very much!

 

Jason

<!doctype html>			<style>						.jwsidebartopbox			{				/* code */			}									.jwsidebartopbox:after            {				/* code */            }						.jwblank1			{				/* code */			}							.jwsmlinksblock			{				/* code */			}			img.opacify			{					opacity:0.4;			}			img.opacify:hover			{				opacity:1.0;			}						</style>		    <div class="jwsidebartopbox">        <div class="jwblank1">        </div>                <div class="jwsmlinksblock">                        Jason Wang Art is on:                        <br/> <br/>            	<a href="http://www.facebook.com/jasonwangart">               		<img class="opacify" src="http://2.bp.blogspot.com/-GLgaU-VPshc/U4N08qWLn1I/AAAAAAAAAZ8/--FxtOA2W8g/s1600/LOGO+facebook+50+c.png" width="30" height="30" alt="facebook"/>            	</a>            	<a href="http://twitter.com/jasonwangart">            	    <img class="opacify" src="http://4.bp.blogspot.com/-u9n6ecjgLqY/U4N0-QazobI/AAAAAAAAAaI/9gQByamXxak/s1600/LOGO+twitter+60+c.png" width="30" height="" alt="youtube" />            	</a>				<a href="http://plus.google.com/u/0/+jasonwangart1">					<img class="opacify" src="http://4.bp.blogspot.com/-Jc2l5PWP1Uo/U4N09HsH-SI/AAAAAAAAAZ0/e3YcGarRcwQ/s1600/LOGO+google++64+c.png" width="30" alt="google+" />				</a>									<br/>				/* code */						<br/>						/* code */						<br/>        </div>				</div>	</!doctype>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...