So this is what i'm trying to achieve..... Each of the smaller boxes is a button.
And i can't figure out how to stop it, I don't know much CSS and am using the bootstrap (with bootswatch) framework.
Any advice appreciated!
<div class="container">
<div class="row">
<div class="col-12 col-md-2">
<button class="small"></button> x 8
</div>
<div class="col-12 col-md-2">
<button class="small"></button> x 8
</div>
<div class="col-12 col-md-2">
<button class="small"></button> x 8
</div>
<div class="col-12 col-md-2">
<button class="small"></button> x 8
</div>
<div class="col-12 col-md-4">
<iframe></iframe>
<ul></ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12 col-md-8 main-container">
<div class="button-container">
<button></button> x 32
</div>
<div class="col-12 col-md-4 sidebar">
sidebar stuff
</div>
</div>
</div>
.button-container {
display: flex
flex-wrap: wrap;
justify-content: space-evenly
}
.button-container button {
flex-basis: 100%;
}
@media(min-width: 768px)
.button-container button {
flex-basis: 40%;
}
}
@media(min-width: 1024px)
.button-container button {
flex-basis: 20%;
}
}
Did you get it to work?