.image-class { width: 200px; height: auto; } Alternatively, if you need both width and height fixed, you could specify both as follows: .image-class { width: 200px; height: 150px; } Be cautious with setting both dimensions, as it can distort the image. For responsive design, use percentages or ‘max-width’: .image-class { max-width: 100%; height: auto; }