trouble with the width of center algined images!
-
Hi everyone, hope your doing fine,
ok so I’m having a problem with the center aligned images in my blog!
the problem is that the images which are aligned to center have a width bigger than the image itself!
note that the image is displayed in it’s right width and height but when you hover to the left and right side of the image in the content area (where the image is displayed), it links to the image!!!
this is the css for the center aligning images :.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 10px; }
and these are the css codes for the hover status :
a:focus img[class*="align"], a:hover img[class*="align"], a:active img[class*="align"], a:focus img[class*="wp-image-"], a:hover img[class*="wp-image-"], a:active img[class*="wp-image-"], #content .gallery .gallery-icon a:focus img, #content .gallery .gallery-icon a:hover img, #content .gallery .gallery-icon a:active img {/* Add some useful style to those fancy borders for linked images ... */ background: #4aae00; /* border-color: #1e201c;*/ border: none; -moz-border-radius: 9px; -webkit-border-radius: 9px; border-radius: 9px; -moz-box-shadow: 0px 0px 10px #4bae00; -webkit-box-shadow: 0px 0px 10px #4bae00; box-shadow: 0px 0px 10px #4bae00; }
I want the center aligned images to link and take the hover effects only when I point the mouse to the images itself and not when the mouse is on the left or right side of the image!
don’t know if I could explain the problem correctly!
I would really appreciate it if anyone could help!
Regards!
- The topic ‘trouble with the width of center algined images!’ is closed to new replies.