GoT Card Memory(Improve)
Hi, how are you? I found this fantastic code from someone here in sololearn and I'm trying to improve it. How can I bring the table layout to the center and leave responsive? <div class="flex-container"> <input type="button" id="a" class="front" onclick="flip('a',0)" /> <input type="button" id="b" class="front" onclick="flip('b',1)" /> <input type="button" id="c" class="front" onclick="flip('c',2)" /> <input type="button" id="d" class="front" onclick="flip('d',3)" /> <input type="button" id="e" class="front" onclick="flip('e',4)" /> <input type="button" id="f" class="front" onclick="flip('f',5)" /> <input type="button" id="g" class="front" onclick="flip('g',6)" /> <input type="button" id="h" class="front" onclick="flip('h',7)" /> <input type="button" id="i" class="front" onclick="flip('i',8)" /> <input type="button" id="j" class="front" onclick="flip('j',9)" /> <input type="button" id="k" class="front" onclick="flip('k',10)" /> <input type="button" id="l" class="front" onclick="flip('l',11)" /> </div> //css .flex-container { table-layout: auto; /* basic styling */ width: 550px; height: 300px; align: middle; align-items: center; justify-content: center; } input { border: 5px solid white; width: 80px; height: 150px; }