A
A
Alex-19172019-08-29 12:42:25
Design
Alex-1917, 2019-08-29 12:42:25

In design, no boom-boom, how to optimally display pictures in an online store?

Why I ask - in the design, no boom-boom ...
As you can see in the screenshot, the pictures can be:

  • square
  • rectangular vertical
  • rectangular horizontal

How to display pictures without empty spaces below them?
I tend to the universal format - a square.
Images are displayed with the img tag, it is not suitable to display them as a square through the background-cover property /
5d679cf9b7304397345665.jpeg
if you gave the answer, keep the surprise:
5d679d077060b055645389.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2019-08-29
@alex-1917

Surprise with a cat is good.
But you also have a surprise: pictures for an online store need to be prepared.
img can also be automatically cropped to a square, this is not a problem. The problem is different, that the head can be cut off, automatically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question