.dstable{ display:grid; grid-template-columns: 5% 95%; justify-items: center ; align-items: center ; } .ds{ width: 100%; } .number{ width: 100%; } @media all and ( max-width: 720px ) { .dstable{ grid-template-columns: 100%; } }