Is there a way to detect the browser width dynamically? For instance, can I adjust the CSS styling based on zoom adjustments like ctrl + or ctrl -? By "box," I am referring to a perfectly square shape. So, when the browser width is 100%, I want a layout with 3 boxes, and when it's 50%, I want 6 boxes displayed. Is it feasible to achieve this?
Example of 100% Browser Width
box box box
Example of 50% Browser Width
box box box box box box