The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Line height align middle what am I missing?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #200041

    Hi all I have 2 floated divs with a padding of 5px and box-sizing: border-box;

    Inside each one I have an image that is 25px tall so I have set the line-height to be 25px and vertical-align: top so the text should then align middle of the flags.

    It is but it is extending the height of the div that it is in.

    I was wondering what I’m missing:

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.