Flex row with image

In this example below you will see how to do a Flex row with image with some HTML / CSS and Javascript

using flex items are distributed so that the spacing between any two items (and the space to the edges) is equal.

Thumbnail
This awesome code was written by ghyde03, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ghyde03 ©
  • HTML
  • CSS
  • JavaScript
    <div class="image-wrap">
  <img src="http:placehold.it/150x50" alt="">
  <img src="http:placehold.it/90x50" alt="">
  <img src="http:placehold.it/75x50" alt="">
  <img src="http:placehold.it/50x50" alt="">
  <img src="http:placehold.it/125x50" alt="">
  <img src="http:placehold.it/90x50" alt="">
</div>

/*Downloaded from https://www.codeseek.co/ghyde03/flex-row-with-image-dVVbZV */
    body{
  background-color:#efefef;
}
.image-wrap{
  max-width:1280px;
  margin: 50px auto;
  padding:15px;
  
  background-color: #fff;
  display: flex;
  justify-content: space-evenly;
}


/*Downloaded from https://www.codeseek.co/ghyde03/flex-row-with-image-dVVbZV */
    

Comments