@media (max-width: 758px) { .aca-dugme { margin:2px; } .dugmici-pocetak { display:flex; flex-direction:row; flex-wrap:wrap } } @media (min-width: 858px) { .aca-dugme { width:20%; } .dugmici-pocetak { width: 100%; } }