Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <ul class="pond">
  <li class="red">🐸</li>
  <li class="green">🐸</li>
  <li class="green">🐸</li>
  <li class="green">🐸</li>
  <li class="green">🐸</li>
  <li class="yellow">🐸</li>
  <li class="yellow">🐸</li>
</ul>
              
            
!

CSS

              
                /* This is level 24 in Flexbox Froggy, repurposed as a series of circles in a CodePen. If Flexbox Froggy works to teach students how to lay out pages with Flexbox, they should be able to complete this example having played the entire game - including level 24. 

Match the circles to the layout by writing Flexbox properties on the .pond class. You don't need to adjust any other code in this pen.

Answer is in the JS window. Don't peek.

*/

/* write your answer here in this class. You do not need other classes, JavaScript, to adjust anything on the page, etc. You won't be PERFECT in alignment, but you will be VERY CLOSE (and closer in the middle than the top or bottom). */
.pond {
  display: flex;

  
}





/* background code for the game -- look at all of the code that Flexbox Froggy students never think about or see */

/* screenshot of the level 24 board as background. */
ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  background: url("https://assets.codepen.io/296057/froggy-level24-board2.png") no-repeat;
  margin-inline: auto;
  width: 600px;
  height: 600px;
  font-size: 50px;
}
li {
  width: 100px;
  height: 100px;
  /* why not gap? FB froggy predates gap. Also, we want fixed margins here to ensure the correct lineup with answer properties. */
  margin: 0.6rem 1.2rem 0.5rem 1.2rem; 
  text-align: center;
  border-radius: 50%;
}
.green {
  background-color: green;
}
.red {
  background-color: red;
}
.yellow {
  background-color: gold;
}



              
            
!

JS

              
                /* DON'T PEEK */





















/* answer to the question:

.pond {
  display: flex;
  flex-direction: column-reverse;
  flex-wrap: wrap-reverse;
  justify-content: center;
  align-content: space-between; 
}

Alternate answer:

.pond {
  display: flex;
  flex-flow: column-reverse wrap-reverse;
  justify-content: center;
  align-content: space-between; 
}
*/
              
            
!
999px

Console