Reputation: 119
.img-responsive{
display: inline-block;
margin: 0 auto;
padding: 5%;
-webkit-height:25% !important;
max-height: 25vh;
margin-left: 10%;
padding-right: 10%;
}
Why doesn't the webkit have any effect on how the image is represented?
Upvotes: 0
Views: 28
Reputation: 765
Please correct max-height: 25vh;
by max-height: 25px;
might be your browser doesn't support Viewport units vh. -webkit only support in chrome and Safari.
Upvotes: 1