Untitled

mail@pastecode.io avatar
unknown
css
a year ago
841 B
113
Indexable
Never
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      body {
        width: 100%;
      }
      .container {
        width: 100%;
      }
      .left {
        width: 80%;
        float: left;
        background-color: rgb(46, 131, 38);
      }
      .right {
        width: 20%;
        float: right;
        background-color: rgb(203, 216, 216);
      }
      .left,
      .right {
        height: 100px;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="left">80%</div>
      <div class="right">20%</div>
    </div>
  </body>
</html>