Is it possible to display 8 tiles 250px x 250px with an equal gap between tiles (row and column). After spending hours trying to achieve the result i want, I have come to the conclusion that Flex will not work in this instance. I have a parent div and 8 child divs. Any suggestions would be greatly appreciated!
.parent {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
flex-flow: row wrap;
justify-content: space-between;
}
.children {
border: 2px solid black;
width: 250px;
height: 250px;
}
<article class="parent">
<section class="children">tile</section>
<section class="children">tile</section>
<section class="children">tile</section>
<section class="children">tile</section>
<section class="children">tile</section>
<section class="children">tile</section>
<section class="children">tile</section>
<section class="children">tile</section>
</article>