I'm working on a website but I'm running into a small problem, I've got a table with a variable amount of squares in it, all those squares are exaclty the same size as the others. At the moment I'm displaying those squares in a table with 5 columns, however, on a mobile device I'd rather have 2 columns beacuse the size of those squares are to small for the content on a 720 pixels wide mobile screen, which causes the content to go outside of the square.
What I want is a variable amount of columns based on the size of the screen. How could I do such a thing?