Multiple div are arranged horizontally, and one of the div content is empty, so why are the other div topped below (float or flex layout is set but not)

problem description

as shown in the figure, multiple div are arranged horizontally, and one of the div contents is empty. Why are other div pushed below (float or flex layout is set but not)
clipboard.png

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)
html:

<div class="container">
     <div style="background: -sharpfff;"></div>
     <div style="background: -sharpeee"></div>
     <div style="background: -sharpddd"></div>
     <div style="background: -sharpccc"></div>
</div>

css:

.container{
    width: 1000px;
    height: 200px;
    margin: 20px auto;
    background: -sharpff0;
    box-sizing: border-box;
}
.container div{
    height: 200px;
    line-height: 200px;
    margin: 0;
    padding: 0;
    border-width: 0;
    width: 20%;
    display: inline-block;
    box-sizing: border-box;
}
Css
Mar.28,2021

is related to vertical-align . If there is no text, the baseline, and other text will be aligned with the bottom
setting vertical-align:top to
add the following style

  Link description  

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d2ec-2bbbd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d2ec-2bbbd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?