<div class="gallery">
  <img src="https://treehouse-codepen.s3.amazonaws.com/snap-points/1.jpg" alt="">
  <img src="https://treehouse-codepen.s3.amazonaws.com/snap-points/2.jpg" alt="">
  <img src="https://treehouse-codepen.s3.amazonaws.com/snap-points/3.jpg" alt="">
  <img src="https://treehouse-codepen.s3.amazonaws.com/snap-points/4.jpg" alt="">
</div>
.gallery {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  margin: auto;
  font-size: 0;
  width: 90%;
	scroll-snap-type: mandatory;
  scroll-snap-points-x: repeat(100%);
}

img {
	width: 100%;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.