How to set image size without changing aspect ratio in CSS? Subash Chandran 4th November 2021 Leave a Comment img { display: block; max-width:230px; max-height:95px; width: auto; height: auto; } Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also CSS code snippet - How to center an overlay button using flex box? Snippets css force image to resize and "not" keep aspect ratio, css force image to resize without keep aspect ratio, css image resize with ratio, css image size don't change ratio, css resize image keep aspect ratio, css shrink image maintain aspect ratio, force image to keep aspect ratio css, how to keep image aspect ratio css, how to keep image proportions resize css, how to resize the image using css without losing the aspect ratio, how to set image aspect ratio in css, image force resize with aspect ratio css, keep aspect ratio css image, make image adjust to div aspect ratio, reisze image dont keep aspect ratio css, resize image ratio css, show image fixed height without aspect ration css Change font size A Decrease font size. A Reset font size. A Increase font size.