Skip to content

Instantly share code, notes, and snippets.

@nirmalrepo
Created February 18, 2019 21:36
Show Gist options
  • Save nirmalrepo/130e95181f692d23f5d4050a30278d11 to your computer and use it in GitHub Desktop.
Save nirmalrepo/130e95181f692d23f5d4050a30278d11 to your computer and use it in GitHub Desktop.
Making image div grid to one height
<style>
@media screen and (min-width: 768px){
.slide-image {
overflow: hidden;
position: relative;
display:block;
height:260px;
line-height:200px;
}
.slide-image img {
position: relative;
margin: -50% auto;
width: 100%;
height:auto;
vertical-align:middle;
}
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment