.exampleWrapper { width: 100%; height: auto; } .exampleWrapper ul { padding: 15px; display: flex; flex-wrap: wrap; } .exampleWrapper ul li { width: calc(20% - 10px); height: 100px; border: 1px solid rgba(204, 204, 204, 0.7); border-radius: 6px; box-shadow: 4px 4px 6px #00000036; display: flex; justify-content: center; align-items: center; margin: 5px; transition: all 0.3s ease-in-out; } .exampleWrapper ul li:hover { border: 1px solid #676767; box-shadow: 4px 4px 6px rgba(103, 103, 103, 0.5); } .exampleWrapper ul li a { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; }