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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <h1>Flush Accordion</h1>

<div class="accordion accordion-flush" id="flushAccordionRobots">

  <div class="accordion-item">
    <h2 id="flushHeadingFirst" class="accordion-header">
      <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#flushCollapseFirst" aria-expanded="true" aria-controls="flushCollapseFirst">
        The Mechanics of Mechanics
      </button>
    </h2>
    <div id="flushCollapseFirst" class="accordion-collapse collapse show" aria-labelledby="flushHeadingFirst" data-bs-parent="#flushAccordionRobots">
      <div class="accordion-body">
        Overview of the basic fundamentals of robot kinesiology, including rotational motion, laws of thermodynamics, space, time, and momentum. Students will learn to analyze and explain workings and gesticulations, identify and describe metals and fluids at rest and in motion, and explain the impact that the laws of gravity have on different forms of energy.
      </div>
    </div>
  </div>

  <div class="accordion-item"> 
    <h2 class="accordion-header" id="flushHeadingSecond">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flushCollapseSecond" aria-expanded="false" aria-controls="flushCollapseSecond">
        The Social Impact of Collective Artificial Intelligence
      </button>
    </h2>
    <div id="flushCollapseSecond" class="accordion-collapse collapse" aria-labelledby="flushHeadingSecond" data-bs-parent="#flushAccordionRobots">
      <div class="accordion-body">
        Throughout history, robots have both embraced and rejected the act of working with other robots in a collective. While science has shown that collective artificial intelligence helps both intellectual and technological development, it has also shown that some robots really want to just be and think by themselves. How do we harness the benefits of both while avoiding the downfall of each?
      </div>
    </div>
  </div>

</div>

<hr>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console