CSS - How to remove whitespace between anchored images

Tags: html,css,anchor,image

Problem :

I have two anchored images on top of each other, separated with a line break. I want the images to sit directly on top of each other, but in Firefox there is a gap between the images. It works in IE7. The only way I have been able to fix this is by changing the line-height (which I don't want to do).

<a href="image.jpg">
    <img height="75" width="75" src="image.jpg" />
<a href="image2.jpg">
    <img height="75" width="75" src="image2.jpg" />

Solution :

Placing the CSS property vertical-align to bottom on the top image will remove the gap in Firefox.

    CSS Howto..

    How to create a css file in eclipse with e(fx)clipse plug in

    CSS Bootstrap AngularJS - How to reduce table row height?

    How do I detect a transition end without a JavaScript library?

    How to get CSS of element (% vs px)

    How to update the attribute while overriding a style defined in css?

    CSS: How to fit a circular progress bar according to screen size (mobile)

    How do you center a picture AND left align text that is touching said picture? HTML5

    How to set font “ Balzano” to the text in enclosed in

    on my website?

    CSS, how to align a button vertically next to large images

    How to put gradient on top of background image but below text

    How can I make a drop down menu without changing the width of the main menu item?

    Javascript: how to check/delete a css style tag in the head of the document

    How to reference a .css file on a razor view?

    How to create a modal popup using javascript and CSS

    How to properly set the 100% DIV height to match document/window height?

    How to remove the “Dotted Border” on clicking?

    how to add a css style property dynamically in JSF

    Ionic: How to center a div?

    How to make a css compatible by all browser

    How to following a link without modifying the displayed url and triggering css animation?

    How to set the last inner div to fill the rest of the wrapper height with CSS?

    How to move all content (relative,absolute,…) down?

    How to have choices that change the background of a site

    How to make 3 vertical dots using CSS?

    How to change the width of a CSS flex-box column?

    How to layout html CSS in this way? [closed]

    how to make unorder list all in same block and have gap within each link (CSS)

    How to only get the 'box-shadow-right' that cuts off when you reach a border?

    Right side border gradient only with the newer webkit gradient syntax, also which browsers support this, and how to do it in those as well?

    How to make arc-in animation on a website - CSS or JavaScript?