Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!--  
#   ______ _______      _______ _______ _______ _____ _______ _______ 
#  |__    |    ___|    |     __|_     _|   |   |     \_     _|       |
#  |__    |    ___|    |__     | |   | |   |   |  --  ||   |_|   -   |
#  |______|_______|    |_______| |___| |_______|_____/_______|_______|
#  3E Studio // http://3estudio.net/
#  Alejandro Finy // https://www.alejandrofiny.com
-->

<div class="container">
<!-- Container -->
      <div class="jumbotron">
        <h1>Bootstrap Toggle Expand/Collapse Text</h1>
        <p>Blah, blah.</p>
        <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
      </div> 

<div class="bs-example"> 
      <!-- Example row of columns -->
      <div class="row">
        <div class="span4 collapse-group">
          <h2>Heading</h2>
           <p class="collapse" id="viewdetails">Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
          <p><a class="btn" data-toggle="collapse" data-target="#viewdetails">View details &raquo;</a></p>
        </div>
      </div>
  

            <!-- Example row of columns -->
      <div class="row">
        <div class="span4 collapse-group">
          <h2>Heading</h2>
           <p class="collapse" id="viewdetails2">Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
          <p><a class="btn" data-toggle="collapse" data-target="#viewdetails2">View details &raquo;</a></p>
        </div>
      </div>
      
           <!-- Example row of columns -->
      <div class="row">
        <div class="span4 collapse-group">
          <h2>Heading</h2>
            <p>You need to keep your enterprise secure, and you want to do it on your terms. <span class="collapse" id="viewdetails3"> Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </span> <a data-toggle="collapse" data-target="#viewdetails3">More... &raquo;</a></p>
        </div>
      </div>
</div>    
<!-- Container -->
</div>
              
            
!

CSS

              
                body {
        padding-top: 60px;
        padding-bottom: 40px;
      }

.bs-example {
  margin: 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console