79444870

Date: 2025-02-17 08:58:35
Score: 1.5
Natty:
Report link

Maybe the clamp() function will help you achieve your task. The code should look like this:

.img-photos {
    width: clamp(90%, 100%, 70%);
    height: auto;
    display: block;
    transition: .5s ease;
}

No Need for @media Queries, clamp() can dynamically adjust the size without media queries, making it a flexible solution.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @media
  • Low reputation (1):
Posted by: Olivia S