HTML: Remove extra space at bottom of div

If you using image width 100% and Height auto, Since images are extra space at bottom of div.



HTML
<div class="images-slide">
    <img src="/footer-image.png" alt="Gallery" title="Gallery">
</div>

CSS
.images-slide img {
    max-width: 100%;
    height: auto;
} 

To un-do this effect for images, you can specify either of the styles below,

img { display:block; }
or
img { vertical-align:bottom; }

Comments

Popular posts from this blog

PHP: Date Difference for PHP 5.2

HTML5 video loop src change on end play function

Custom OpenCart 2.3.0.2 theme