CSS3 realizes the card notification prompt in the upper right corner.

<!doctype html>
<html>
<head>
    <style>
        .container {
            position: fixed;
            top: 45px;
            right: 4px;
            height: 0;
            text-align: right;
            overflow: visible;
        }
        .card {
            display: inline-block;
            max-width: 200px;
            line-height: 24px;
            padding: 8px 12px;
            margin-bottom: 4px;
            color: -sharpFFFFFF;
            text-align: left;
            background-color: -sharpF68C1E;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="card"><span></span></div><br>
        <div class="card"><span></span></div><br>
        <div class="card"><span></span></div>
    </div>
</body>
</html>

this is the desired effect at the moment, but you need to use
to wrap the line. I"ve tried

.
.card::after {
    content: "\A";
    white-space: pre;
}

but it has no effect on the elements of inline-block, and inline-block is used to fit the div to the content size rather than to fill the parent div width.
is there any great god who can help achieve the simple structure of removing the same effect of
? thank you very much.
Preview code: http://runjs.cn/detail/kjprizbv

Css
Mar.16,2021

you can consider using FlexBox to solve the problem. Here is the code I changed. Please refer to

.
<!doctype html>
<html>
<head>
  <style>
    .container {
      position: fixed;
      top: 45px;
      right: 4px;

      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      max-width: 200px;
    }
    .card {
      padding: 8px 12px;
      margin-bottom: 4px;
      color: -sharpfff;
      background-color: -sharpF68C1E;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="card"><span></span></div><br>
    <div class="card"><span></span></div><br>
    <div class="card"><span></span></div>
  </div>
</body>
</html>
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-1b3b42a-4eee3.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-1b3b42a-4eee3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?