Answers for "how to downscale an image css"

CSS
2

image resize css

#myDiv
{
  height: 104px;
  width: 140px;
}
#myDiv img
{
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  display: block;
}
Posted by: Guest on March-24-2022
1

scale down image css

img.resize {
    width: 540px; /* you can use % */
    height: auto;
}
Posted by: Guest on January-29-2021

Browse Popular Code Answers by Language