CSS - Tips


fit image into specified width and height while keeping aspect ratio

image: {
  height: auto;
  max-height: 255px;
  max-width: 345px;
  width: auto;
}