I have this weird spacing on the bottom and right of an image and I want to remove it. I have set the padding and margin to 0px but it still shows. This is annoying as I want the images to neatly fit into the outer box with zero spacing for a pixel perfect appearance.
img.news_title_icon {
width: 80px;
height: 80px;
padding: 0px; margin: 0px; border: 0px;
}
body {
width: 800px;
margin: auto;
margin-top: 50px; /* for testing */
padding: 0px;
font-family: arial, helvetica, sans-serif;
font-size: 11pt;
background-color: #001133;
color: white;
}
div.news_title_container {
margin-bottom: 5px;
}
.light_container, .dark_container {
-webkit-box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.57);
-moz-box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.57);
box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.57);
border: 1px solid #005eff;
}
.light_container {
background-color: rgba(0, 34, 102, 0.8);
}
<div class="news_title_container light_container">
<img class="news_title_icon" alt="an image">
<img class="news_title_icon" alt="an image">
<img class="news_title_icon" alt="an image">
</div>
Can anyone help? Thank you!