chubaka
chubaka

Reputation: 119

-webkit does not have any effect on the view

.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

Answers (1)

Praveen Poonia
Praveen Poonia

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

Related Questions