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>
</head>
<body>
    <div class="container">
        <div class="item-1 item">Item 1</div>
        <div class="item-2 item">Item 2</div>
        <div class="item-3 item">Item 3</div>
        <div class="item-4 item">Item 4</div>
        <div class="item-5 item">Item 5</div>
    </div>
</body>
</html>
 
/* ================================= 
  Flexbox
==================================== */
.container {
    display: grid;
    grid-template-columns: 1fr;
}
/* ================================= 
  Media Queries
==================================== */
@media (min-width: 30em) {
  
  .container {
      grid-template-rows: 1fr 1fr 1fr;
      grid-auto-columns: 1fr;
      grid-auto-flow: column;
 }
}
/* ================================= 
  Page Styles
==================================== */
* {
    box-sizing: border-box;
}
body {
    font-size: 1.35em;
    font-family: 'Varela Round', sans-serif;
    color: #fff;
    background: #e8e9e9;
    padding-left: 5%;
    padding-right: 5%;
}
.container {
    padding: 10px;
    background: #fff;
  border-radius: 5px;
    margin: 45px auto;
  box-shadow: 0 1.5px 0 0 rgba(0,0,0,0.1);
}
.item {
    color: #fff;
    padding: 15px;
    margin: 5px;    
    background: #3db5da;
    border-radius: 3px;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers