I noticed that the following produces a larger distance between the border's bottom to the text in first element then to the rest of them.
ul{
display: flex;
flex-direction: row;
list-style-type: none;
font-size: 0;
}
li{
display:flex;
font-size: 1.3em;
border: 1px solid black;
justify-content: flex-end;
}
li:nth-child(1){ font-size: 3.6em; }
li:nth-child(n+2){ font-size: 1.3em; }
I zero'fied all the possible margins and paddings (confirming it in the browser). I tried to set font size of the parent to 0 (making the text vanish!) with the CSS below.
ul{
display: flex;
flex-direction: row;
list-style-type: none;
font-size: 0;
}
Do I have to set negative values on the li
's manually? It seems not the best practice.