Answer the question
In order to leave comments, you need to log in
How to make such a table from logos?
How do they make such a block arrangement of logos, like a table, so that everything is even?
I did it on flex-box, but it ended up with a lot of lines of code. I made each logo display:block and applied a border, and applied nth-child() to each such block where I adjusted the padding and removed the border where necessary.
I would like to do something differently to optimize the process
Answer the question
In order to leave comments, you need to log in
Google, request: Flexbox css
<style>
* {margin:0;padding:0}
.rowbox {
display:flex;
flex-wrap:wrap;
justify-content:flex-start
}
.col {
box-sizing:border-box;
border:1px solid #333;
width:calc(100% / 5);
height:100px;
}
</style>
<div class="rowbox">
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
<div class="col">Logo</div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question