CSS - Remove space between images

December 2016



Issue


I have a blogs and I can not a remove the space between the images of my articles.

Solution


This may be related to the CSS of the image tag. Look at your style sheet to see if you have a style that begins with "img" and set the margins to zero. If this is not the case, add the following in your style sheet:

img{
padding:0;
margin:0;
}

Thanks to tryan44 for this tip.

Related :

This document entitled « CSS - Remove space between images » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.