Answers for "css code to resize an image"

CSS
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
0

CSS shrink image

<div style="width: 200px; height: 200px;">
<img src="imagenimagen1.jpg" style="width: 100px; height: 100px;"/>
</div>
Posted by: Guest on September-10-2020

Browse Popular Code Answers by Language