How to adjust bootstrap image height?

Asked

Viewed 331 times

0

2 answers

3

In his CSS you own the following class:

 <style>
    #imagem
    {
    height: 500px;
    }
</style>

Add her in a media querie in his CSS with the height correct that the image will look the way you want it.

  • That style in practice is no longer doing anything I took it out now and if checking it does not make any effect

  • 1

    If you inspect the HTML elements (F12) and remove the class you will see that it does something yes!

0


I resolved it this way

@media (min-width: 1200px) { 
    #imagem 
    { 
        height: 500px;
    } 
} 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.