Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <style>
    .box {
  width: 800px;
  height: 300px;
  border: 2px dotted rgb(96, 139, 168);
}
.box>* {
  border: 2px solid rgb(96, 139, 168);
  border-radius: 5px;
  background-color: rgba(96, 139, 168, .2);
}
  </style>
</head>
<body>
<div class="box">
  <div class="d1">1</div>
  <div class="d2">2</div>
  <div class="d3">3</div>
  <div class="d4">4</div>
  <div class="d5">5</div>
</div>
      
</body>
</html>
 
.box {
  display: flex;
  /*
  flex-direction: column;
  align-items: flex-end;
  */
  justify-content: flex-end;  
}
.box div {
  width: 100px;
  height: 100px;
}      
.d1{margin-right: auto}
.d5{margin-left: auto}
Output 300px

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

Dismiss x
public
Bin info
harishmathurpro
0viewers