css 3 set image without width and height code example Example: how to contain image size overflow: 'hidden', backgroundSize : 'contain',