csspoo

Search

Tags

  • Animation 1
  • Hover 2

Feed

RSS2.0
  • 2019-11-23

    Flex image stretched out fix

    Author

    Jens Törnell

    Comments

    Start a discussion

    Sometimes when working with flex, the image is stretched out. It may not be the expected behaviour. It's because align-self is set to stretched by default.

    img {
      align-self: flex-start;
    }

    Full page

    Sources

    • https://stackoverflow.com/a/37610279/148496

    If you like this post, please share it! Tweet this!

  • Write for us
  • Contact us
  • About
  • License
Copyright © 2019

This page uses cookies for Google Analytics.