Check out example codes for "css change image width". It will help you in understanding the concepts better.

Code Example 1

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

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

/*Example*/
img {
  height: 200px;
}

Code Example 2

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

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

/*Example*/
img {
  width: 200px;
}

Code Example 3

img {
  width: width;
  height: height;
}

Code Example 4

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) */
}

Learn ReactJs, React Native from akashmittal.com