Answers for "html image height auto"

-2

Scaling Images and Videos css

.container {
  width: 50%;
  height: 200px;
  overflow: hidden;
}

.container img {
  max-width: 100%;
  height: auto;
  display: block;
}
Posted by: Guest on May-03-2020
0

CSS change image height

/*Search Term: "CSS change image height"*/

img {
  height: /*Add height here*/;
}

/*Example*/
img {
  height: 200px;
}
Posted by: Guest on October-12-2020

Browse Popular Code Answers by Language