Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
<meta name="description" content="flexbox">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>JS Bin</title>
  </head>
  <body>
    <div class="container">
      <div class="box one">
        <p>1</p>
      </div>
      <div class="box two">
        <p>2</p>
      </div>
      <div class="box three">
        <p>3</p>
      </div>
    </div>
    
  </body>
</html>
 
/* * {
  border: 1px dashed blue
} */
.container {
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}
.box {
  height: 50px;
  width: 50px;
  border: 1px solid black;
  color: white;
}
.box p {
  text-align: center;
}
.one {
  background: blue;
  width: 50px;
}
.two {
  background: green;
  width: 70px;
}
.three {
  background: red;
  width: 90px;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x