CSS - Remove space between images

January 2017



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


Published by aakai1056. Latest update on June 18, 2012 at 06:28 AM by aakai1056.
This document, titled "CSS - Remove space between images," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).