Constraining image height with bootstrap responsive image?

If the container should have a fixed height, then give it an ID (or a class) and change the .img-responsive restrictions the other way around eg

.container {
height: 600px;
}


/*And then change */
  .container .img-responsive {
    display: block;
    height: auto;
    max-width: 100%;
}  
/*To */

.container  .img-responsive {
    display: block;
    width: auto;
    max-height: 100%;
}

Not sure how it will work with a mix of orientations but if they are floated it shouldnt really matter

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)