I'm appending a bunch of boxes with w3-card into this div:
<div id="myClasses" class="w3-container" style="display: inline-flex;">
Here's where I append it:
myclasses.append([
$('<div/>', {"class": "w3-card button", "onclick": "enterThisClass(" + e + ")"}).append([
$('<h3/>').text(snapshot.val().name)
])
])
This works ok, but when I have too many boxes side by side, they just squish together and hide the ones over the edge. How would I make it so it wouldn't squish nor go over the edge, but rather make a new line?