Home > Blockchain >  i have set display: flex and flex-wrap for a container however its items are not wrapping
i have set display: flex and flex-wrap for a container however its items are not wrapping

Time:12-21

Code:

 

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      margin: 0;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    
    .header {
      height: 72px;
      background: darkmagenta;
      color: white;
      font-size: 32px;
      font-weight: 900;
      padding-left: 16px;
      display: flex;
      align-items: center;
    }
    
    .footer {
      height: 72px;
      background: #eee;
      color: darkmagenta;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .sidebar {
      width: 300px;
      background: royalblue;
      flex-shrink: 0;
      padding: 16px;
    }
    
    ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
    }
    
    li {
      margin-bottom: 16px;
    }
    
    a {
      text-decoration: none;
      color: white;
      font-size: 24px;
    }
    
    .card {
      border: 1px solid #eee;
      box-shadow: 2px 4px 16px rgba(0,0,0,.06);
      border-radius: 4px;
      margin: 16px;
      padding: 16px;
    }
    
    .container {
      padding: 32px;
      display: flex;
      flex-wrap: wrap;
    }
    
    .body {
      display: flex;
      flex: 1;
    }
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>The Holy Grail</title>
      <link rel="stylesheet" href="style.css">
    </head>
    <body>
      <div >
        MY AWESOME WEBSITE
      </div>
      <div >
        <div >
          <ul>
            <li><a href="google.com">⭐ - link one</a></li>
            <li><a href="google.com">           
  • Related