WP forcing a style tag 10px bigger than image
-
Working on 2.7 and loving it! However I’ve an issue that I also had with 2.6 and it’s regarding images. Yes, I’ve searched the forum AND checked my style sheets so if anyone out there can help me I’d be really grateful.
You can see what I’m dealing with at the moment by going here:
https://www.followtheboat.com/index.php/2002/05/11/a-new-post/
You can see that both my left aligned and right-aligned images have an extra 10px added to the right, or, rather, the container is 10px bigger and the image is forced top-left. When I look at the code I can see that the image style is set to 210px when the image itself is 200px. Here is the CSS for all my images, starting with the code for the align left and align right images that are affected:
.wp-caption.alignright {background-color: #443713; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #FFFFFF; margin-left:15px; border: thin solid #443713;} .wp-caption.alignleft {background-color: #443713; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #FFFFFF; margin-right:15px; border: thin solid #443713;} /* CURRENT IMAGE*/ img.alignright {float:right;margin:0 0 1em 1em; border: thin solid #443713;margin:5px;} img.alignleft {float:left;margin:0 1em 1em 0;border: medium solid #443713; margin:5px;} img.aligncenter {display: block;margin-left: auto;margin-right: auto;border: thin solid #443713;margin:5px;} a img.alignright {float:right; margin:0 0 1em 1em} a img.alignleft {float:left; margin:0 1em 1em 0; border: medium solid #6d5820;} a img.aligncenter {display: block; margin-left: auto; margin-right: auto;border: medium solid #6d5820;} /*THUMBNAIL IMAGE*/ .imgtfe {border: medium solid #443713;} /* OTHER IMAGES*/ .ranimagecontainer {width:600px; float:left; text-align:center;border: thin double #6d5821; background-color:#443713;} .ranimage {position: relative; background: url(images/rlogimage.gif) no-repeat left bottom; z-index:5; background-repeat no-repeat; height:60px;} .picleft{background-color: #453713;border: thin solid #7c6426;padding: 5px;margin-right:15px;} img.right { padding: 4px; margin: 0 0 2px 7px; display: inline; } img.left { padding: 4px; margin: 0 7px 2px 0; display: inline; border: medium solid #FF0000;}
If anyone could help I’d be really grateful as this is the last major annoyance I have to deal with before I started migrating my webiste.
Thank you!
- The topic ‘WP forcing a style tag 10px bigger than image’ is closed to new replies.