.expertise {
display: flex; /* make element a flexible layout container */
flex-wrap: wrap; /* a row of N columns, wrapping within frame*/
justify-content: space-between; /* evenly space elements, outer to the edges */
align-items: flex-end; /* bottom align elements */
background-color: silver;
}
.icon-wrapper {
background-color: blue;
max-width: 100%; /* don't make this too small, leave as is or make it a multiple of min-width */
max-height: 100%; /* ditto */
min-height: auto; /* override if you want to set minimum; interacts with flex-basis! */
overflow: hidden; /* Chop off outside content */
margin: 8px /* some space between the boxes */
}
.icon-wrapper p {
text-align: center;
}
.icon-wrapper .img {
display: block; /* default inline, block removes bottom space */
width: 4rem;
height: 4rem;
background-color: red;
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.