Answers for "how to reduce the size of image in css"

CSS
2

reduce image size css

.container {
    width: 200px;
    height: 120px;
}

/* Resize images */
.container img {
    width: 100%;
    height: auto;
}
Posted by: Guest on June-23-2021
4

css image size adjust

squareImage {
  border: 1px solid #ddd;	/* thickness and color of border */
  border-radius: 4px;		/* edge rounding of border */
  width: 150px;				/* width of image (px or % or auto) */
  height: auto;				/* height of image (px or % or auto) */
}
Posted by: Guest on August-15-2020
8

css change image width

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

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

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

Code answers related to "how to reduce the size of image in css"

Browse Popular Code Answers by Language