Assessment wanted for sizing skill test 1. Task-2

task-2

by EiNzp

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <title>Sizing Task 2: Percentages</title>
    <link rel="stylesheet" href="styles/styles.css">
    
  </head>

  <body>
   
    <div class="box">
      <div class="inner">Make me 60% of my parent's width.</div>
    </div>
  
  </body>
 
</html>

CSS

* {
    box-sizing: border-box;
  }

  body {
    background-color: #fff;
    color: #333;
    font: 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
    padding: 1em;
    margin: 0;
  }

  .box {
    border: 5px solid #000;
    width: 400px;
    margin-bottom: 1em;
  }

  .inner {
    background-color: rebeccapurple;
    color: white;
    border-radius: 5px;
    /* task execution */
    width: 60%;
    padding: 10%;
  }