How to align the two ends of multiple boxes?

want to achieve this effect

Note: the left and right sides are fixed

v-for

4:

25%

if you set the margin, there is also one end that cannot be aligned.
the style of my elastic box.

<div class="box">
     <div v-for="item in classes" class="inBox">
            <a href="-sharp"> {{item.name}}</a>
     </div>
</div>
.box{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .inBox{
          font-size: 18px;
          a{
            color: rgb(145,145,145);
          }
        }
      }

can you use only styles to achieve the effect of figure 1?

Oct.28,2021

disable scaling of the last (fourth) child element of each row.
style Code:


inbox<br>`.box{

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .inBox{
      font-size: 18px;
      width:25%;
  text-align:center;
      a{
        color: rgb(145,145,145);
      }
    }
  }`
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-1b2bdbb-33e96.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-1b2bdbb-33e96.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?