Jump to content

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

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!



<!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>

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...